- Timestamp:
 - May 4, 2008, 12:04:56 AM (18 years ago)
 - Location:
 - locker/sbin
 - Files:
 - 
          
- 2 edited
 
- 
          build-update (modified) (1 diff)
 - 
          propose-update (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
locker/sbin/build-update
r744 r745 88 88 89 89 copy(catfile($proposaldir, "update.diff"), catfile($outdir, "update.diff")) or die "Couldn't copy update.diff: $!"; 90 if (-d catdir($proposaldir, "extra")) { 91 system('cp', '-r', catdir($proposaldir, "extra"), $outdir) && die "Couldn't copy extra: $!"; 92 } 90 93 91 94 open (SCRIPT, ">", catfile($outdir, "update")) or die "Couldn't write update: $!";  - 
        
locker/sbin/propose-update
r741 r745 50 50 my @files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`; 51 51 if (@files <= 1) { 52 `athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs - imv \{} .`;52 `athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs -I{} mv \{} .`; 53 53 rmdir($files[0]); 54 54 } … … 57 57 } 58 58 59 my @oldfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$olddir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $olddir -type f | xargs - imd5sum \{}`;59 my @oldfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$olddir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $olddir -type f | xargs -I{} md5sum \{}`; 60 60 #print Dumper(\@oldfiles); 61 my @newfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$newdir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $newdir -type f | xargs - imd5sum \{}`;61 my @newfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$newdir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $newdir -type f | xargs -I{} md5sum \{}`; 62 62 #print Dumper(\@newfiles); 63 63  
Note: See TracChangeset
          for help on using the changeset viewer.
      