Changeset 744 for trunk/core/tools/check_manifest.pl
- Timestamp:
- 11/16/08 20:35:10 (4 years ago)
- File:
-
- 1 edited
-
trunk/core/tools/check_manifest.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/tools/check_manifest.pl
r14 r744 3 3 # cruise back up the tree until we find lib and data subdirs 4 4 require Cwd; 5 use File::Find; 5 6 6 7 my @cwd = split(/[\/\\]/, Cwd::getcwd()); … … 30 31 my $manifest = 'lib/MANIFEST'; 31 32 unless (-f $manifest) { 32 $manifest = `find $root/lib/TWiki -name 'MANIFEST' -print`;33 chomp $manifest;33 File::Find::find( sub { /^MANIFEST\z/ && ( $manifest = $File::Find::name ) 34 }, "$root/lib/TWiki" ); 34 35 } 35 36 die "No such MANIFEST $manifest" unless -e $manifest; … … 37 38 my %man; 38 39 39 map{ s/ .*//; $man{$_} = 1; } 40 grep { !/^!include/ } 41 split(/\n/, `cat $manifest` ); 40 open MAN, "< $manifest" or die "Can't open $manifest for reading: $!"; 41 while( <MAN> ) { 42 next if /^!include/; 43 $man{$1} = 1 if /^(\S+)\s+\d+$/; 44 } 45 close MAN; 42 46 43 47 my @lost;
Note: See TracChangeset
for help on using the changeset viewer.
