Changeset 10615 for trunk/Padre/dev.pl
- Timestamp:
- 02/08/10 02:23:11 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/dev.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/dev.pl
r10519 r10615 15 15 use Getopt::Long (); 16 16 use vars qw{ 17 $USAGE 17 18 $DEBUG 18 $TRACE19 $DIE20 19 $PROFILE 21 20 $PLUGINS 22 $USAGE23 21 $FULLTRACE 24 22 $INVISIBLE … … 27 25 28 26 BEGIN { 27 $USAGE = 0; 29 28 $DEBUG = 0; 30 $DIE = 0;31 29 $PROFILE = 0; 32 30 $PLUGINS = 0; 33 $USAGE = 0;34 31 $FULLTRACE = 0; 35 32 $INVISIBLE = 0; 36 33 @INCLUDE = (); 37 34 Getopt::Long::GetOptions( 38 'usage|help' => \$USAGE, 39 'debug|d' => \$DEBUG, 40 'trace' => sub { 41 $ENV{PADRE_DEBUG} = 1; 42 }, 43 'die' => \$DIE, 35 'usage|help' => \$USAGE, 36 'debug|d' => \$DEBUG, 37 'trace' => sub { $ENV{PADRE_DEBUG} = 1 }, 38 'die' => sub { $ENV{PADRE_DIE} = 1 }, 44 39 'profile' => \$PROFILE, 45 40 'a' => \$PLUGINS, … … 50 45 } 51 46 52 $USAGE and usage();53 54 47 $ENV{PADRE_DEV} = 1; 55 48 $ENV{PADRE_HOME} = $FindBin::Bin; 56 $ENV{PADRE_DIE} = $DIE;57 49 58 50 use lib $FindBin::Bin, "$FindBin::Bin/lib"; … … 90 82 91 83 if ($FULLTRACE) { 92 eval { require Devel::Trace; }; 84 eval { 85 require Devel::Trace; 86 }; 93 87 if ($@) { 94 88 print "Error while initilizing --fulltrace while trying to load Devel::Trace:\n" 95 89 . "$@Maybe Devel::Trace isn't installed?\n"; 96 exit 1;90 exit(1); 97 91 } 98 92 push @cmd, '-d:Trace'; … … 121 115 push @cmd, '--help' if $USAGE; 122 116 123 $DEBUG and print "Running " . join( ' ', @cmd ) . "\n"; 117 if ( $DEBUG ) { 118 print "Running " . join( ' ', @cmd ) . "\n"; 119 } 120 121 if ( $USAGE ) { 122 usage(); 123 } 124 124 125 125 system(@cmd); 126 126 127 127 sub vmsgfmt { 128 msgfmt( 129 { in => "$_[0]/share/locale/", 130 verbose => 0, 131 } 132 ); 128 msgfmt( { in => "$_[0]/share/locale/", verbose => 0 } ); 133 129 } 134 130
Note: See TracChangeset
for help on using the changeset viewer.
