Changeset 5223
- Timestamp:
- Oct 3, 2005, 3:52:07 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/psParseErrorCodes (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/psParseErrorCodes
r4541 r5223 8 8 9 9 my $data = "psErrorCodes.dat"; 10 my $outdir = "."; 10 11 11 12 # Assign variables based on the presence of command line options to the script 12 13 GetOptions( 13 14 "data=s" => \$data, 15 "outdir=s" => \$outdir, 14 16 "verbose" => \$verbose, 15 17 "help" => \$help … … 51 53 52 54 foreach (@ARGV) { 53 my $output = $_; 54 my $filename = $output.".in"; 55 my $filename = $_.".in"; 56 m/\/?([\w\.]+)$/; 57 my $output = "$outdir/$1"; 55 58 56 59 die "Failed to open input file '$filename'" … … 59 62 if !open( OUTFILE, ">", $output ); 60 63 61 print "\nOutput File: \n" if $verbose;64 print "\nOutput File: $output\n" if $verbose; 62 65 while (<INFILE>) { 63 66 if (/\${ErrorCode}/ || /\${ErrorDescription}/ || /\${n}/) {
Note:
See TracChangeset
for help on using the changeset viewer.
