Changeset 42744 for trunk/psconfig/pscheckmods
- Timestamp:
- Dec 6, 2024, 12:43:47 PM (20 months ago)
- File:
-
- 1 edited
-
trunk/psconfig/pscheckmods (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/pscheckmods
r41583 r42744 3 3 $DEBUG = 0; 4 4 $VERBOSE = 0; 5 if (@ARGV > 2 && $ARGV[0] eq "-v") { 6 $VERBOSE = 1; 7 shift @ARGV; 8 } 9 if (@ARGV > 2 && $ARGV[0] eq "-debug") { 10 $DEBUG = 1; 11 shift @ARGV; 12 } 5 13 if (@ARGV > 2 && $ARGV[0] eq "-v") { 6 14 $VERBOSE = 1; … … 55 63 my ($realfilename,$result); 56 64 ITER: { 65 my $found = 0; 57 66 foreach $prefix (@INC) { 58 67 $realfilename = "$prefix/$filename"; 59 print " real: $realfilename\n" if $DEBUG;68 print "try: $realfilename\n" if $DEBUG; 60 69 if (-f $realfilename) { 61 70 $INC{$filename} = $realfilename; … … 63 72 $result = do $realfilename; 64 73 print "result: $result\n" if $DEBUG; 65 last ITER; 74 if (! $DEBUG) { last ITER; } 75 $found = 1; 66 76 } 67 77 } 68 die "Can't find $filename in \@INC";78 if (!$found) { die "Can't find $filename in \@INC"; } 69 79 } 70 80 if ($@) {
Note:
See TracChangeset
for help on using the changeset viewer.
