Sort md5sum.txt files again after filename.

This commit is contained in:
Daniel Baumann 2008-04-09 13:31:46 +02:00
parent eded2a1791
commit d5ac81a8e3
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ fi
# Calculating md5sums
cd binary
find . -type f \! -name 'isolinux/isolinux.bin' \! -name 'boot/grub/stage2_eltorito' -print0 | xargs -0 md5sum > ../md5sum.txt
find . -type f \! -name 'isolinux/isolinux.bin' \! -name 'boot/grub/stage2_eltorito' -print0 | sort -z | xargs -0 md5sum > ../md5sum.txt
cat > md5sum.txt << EOF
This file contains the list of md5 checksums of all files on this medium.
@ -66,7 +66,7 @@ or, manually with: 'md5sum -c md5sum.txt'.
EOF
sort ../md5sum.txt >> md5sum.txt
cat ../md5sum.txt >> md5sum.txt
rm -f ../md5sum.txt
cd "${OLDPWD}"

View File

@ -60,7 +60,7 @@ fi
# Calculating md5sums
cd source
find . -type f -print0 | xargs -0 md5sum > ../md5sum.txt
find . -type f -print0 | sort -z | xargs -0 md5sum > ../md5sum.txt
cat > md5sum.txt << EOF
This file contains the list of md5 checksums of all files on this medium.
@ -71,7 +71,7 @@ or, manually with: 'md5sum -c md5sum.txt'.
EOF
sort ../md5sum.txt >> md5sum.txt
cat ../md5sum.txt >> md5sum.txt
rm -f ../md5sum.txt
cd "${OLDPWD}"