# HG changeset patch # User Pascal Bellard # Date 1217157470 0 # Node ID d63ee20f29532c528274413db3d5fae4e84383c3 # Parent ed491caf668421481ca3a7a6ce6155dd6b6b0272 Add md5sum for tazpkg pack diff -r ed491caf6684 -r d63ee20f2953 tazpkg --- a/tazpkg Sun Jul 27 10:35:18 2008 +0000 +++ b/tazpkg Sun Jul 27 11:17:50 2008 +0000 @@ -1133,11 +1133,6 @@ done > etc/tazlito/config-packages.list cd .. echo "etc/tazlito/config-packages.list" >> files.list - while read file; do - [ -L "fs/$file" ] && continue - [ -f "fs/$file" ] || continue - md5sum "fs/$file" | sed 's/ fs/ /' - done < files.list > md5sum cat > receipt <> ../files.list cd .. && sed -i s/'^.'/''/ files.list status + echo -n "Creating md5sum of files..." + while read file; do + [ -L "fs$file" ] && continue + [ -f "fs$file" ] || continue + md5sum "fs$file" | sed 's/ fs/ /' + done < files.list > md5sum + status # Build cpio archives. echo -n "Compressing the fs... " - find fs -print | cpio -o -H newc > fs.cpio - gzip fs.cpio && rm -rf fs + find fs -print | cpio -o -H newc | gzip > fs.cpio.gz + rm -rf fs echo -n "Creating full cpio archive... " find . -print | cpio -o -H newc > ../$PACKAGE.tazpkg echo -n "Restoring original package tree... "