Changeset 730 for locker/sbin/parallel-find.pl
- Timestamp:
- Apr 13, 2008, 11:09:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/sbin/parallel-find.pl
r729 r730 20 20 # use -xdev. May miss libraries stuff. 21 21 22 sub updatable ($) { 23 my $filename = shift; 24 for my $l (`fs la "$filename"`) { 25 return 1 if ($l =~ /^ system:scripts-security-upd rlidwk/); 26 } 27 return 0; 28 } 29 30 sub version ($) { 31 my $dirname = shift; 32 open my $h, "$dirname/.scripts-version"; 33 return (<$h>)[-1]; 34 } 35 22 36 sub find ($$) { 23 37 my $user = shift; … … 27 41 open my $out, ">$dump/$user"; 28 42 while (my $f = <$files>) { 29 print $out $f; 43 chomp $f; 44 $f =~ s!/\.scripts-version$!!; 45 if (! updatable($f)) { 46 print STDERR "not updatable: $f"; 47 next; 48 } 49 $v = version($f); 50 print $out "$f:$v"; 30 51 } 31 52 return 0;
Note: See TracChangeset
for help on using the changeset viewer.