Changeset 1450 in ProjectBuilder for projects/md2mb
- Timestamp:
- Apr 4, 2012, 5:14:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/md2mb/devel/md2mb/bin/md2mb.pl
r1449 r1450 26 26 Aborting 27 27 EOF 28 # CHANGE AS YOU WISH29 # Is the newroot a file (1) or a dir (0)30 my $nrisfile = 0;31 # END CHANGE32 28 my $debug = 0; 29 my $file = 0; # is the newroot a file (1) or a dir (0) ? 33 30 my $help = 0; 34 31 my $man = 0; … … 44 41 GetOptions( 45 42 'debug|d' => \$debug, 43 'file|f' => \$file, 46 44 'help|h' => \$help, 47 45 'man|m' => \$man, … … 77 75 # create destination path 78 76 if ($debug) { 79 print "TARGET DIR: mkdir -p $newroot\n" if ((not -d "$newroot") && (not $ nrisfile));80 print "CMD: mkdir -p $newroot\n" if ((not -d "$newroot") && (not $ nrisfile));77 print "TARGET DIR: mkdir -p $newroot\n" if ((not -d "$newroot") && (not $file)); 78 print "CMD: mkdir -p $newroot\n" if ((not -d "$newroot") && (not $file)); 81 79 } else { 82 mkpath("$newroot",0, 0755) if ((not -d "$newroot") && (not $ nrisfile));80 mkpath("$newroot",0, 0755) if ((not -d "$newroot") && (not $file)); 83 81 } 84 82 … … 181 179 Options: 182 180 -debug | -d debug mode 181 -file | -f whether $newroot is a file or a directory 183 182 -help | -h brief help message 184 183 -man | -m full documentation … … 197 196 so this is safe to use when testing. 198 197 198 =item B<-file> 199 200 Specifies that $newroot is a file. If this option is omitted, it is assumed 201 that $newroot is a directory instead. 202 199 203 =item B<-help> 200 204
Note:
See TracChangeset
for help on using the changeset viewer.