Guest User

Untitled

a guest
Jun 19th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. use Getopt::Long;
  7. use Pod::Usage;
  8.  
  9. use constant ADOBE_EXTMNGR => '/Applications/Adobe Extension Manager CS5/';
  10. use constant ADOBE_APPFOLDER => 'Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5';
  11.  
  12.  
  13. my $mxi_file; my $mxp_file; my $args; my $help;
  14. GetOptions(
  15. 'mxi=s' => \$mxi_file,
  16. 'mxp=s' => \$mxp_file,
  17. 'args=s' => \$args,
  18. 'help|?' => \$help
  19. );
  20.  
  21. pod2usage(1) if($help || !$mxi_file && !$mxp_file);
  22.  
  23. my $cmd = ADOBE_EXTMNGR.ADOBE_APPFOLDER.' -package mxi="'.$mxi_file.'" mxp="'.$mxp_file.'" ';
  24.  
  25. if($args)
  26. {
  27. $cmd .= $args;
  28. }
  29.  
  30. system $cmd;
  31.  
  32. exit;
  33.  
  34. __END__
  35.  
  36. =head1 NAME
  37.  
  38. MXP package - Package Adobe Extension MXI files into MXP
  39.  
  40. =head1 SYNOPSIS
  41.  
  42. This script will, given arguments talk to the Adobe Extension Manager and bundle
  43. your extension together.
  44.  
  45. =head1 USAGE
  46.  
  47. ./mxp_package.pl --mxi=Extension.mxi --mxp=Extension.mxp
  48.  
  49. If you want to add in additional arguments, like package through BridgeTalk or
  50. pipe the data out somewhere, simply use --args and encapulate them under
  51. quote marks.
  52.  
  53. =head1 CONFIGURATION
  54.  
  55. By default this will talk to a default install of CS5. If you have your
  56. Extension Manager in a different location, edit this file and modify the
  57. constants defined above this to whatever is appropriate.
  58.  
  59. =head1 AUTHOR
  60.  
  61. Squeeks, L<squeek@cpan.org>
  62.  
  63. =head1 LICENSE
  64.  
  65. This is licensed under the same terms as Perl itself.
  66.  
  67. =cut
Add Comment
Please, Sign In to add comment