Changeset 745 for locker/sbin/propose-update
- Timestamp:
- May 4, 2008, 12:04:56 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.