tazpkg rev 138
Add md5sum for tazpkg pack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 27 11:17:50 2008 +0000 (2008-07-27) |
parents | ed491caf6684 |
children | be0dfeb8dc88 |
files | tazpkg |
line diff
1.1 --- a/tazpkg Sun Jul 27 10:35:18 2008 +0000 1.2 +++ b/tazpkg Sun Jul 27 11:17:50 2008 +0000 1.3 @@ -1133,11 +1133,6 @@ 1.4 done > etc/tazlito/config-packages.list 1.5 cd .. 1.6 echo "etc/tazlito/config-packages.list" >> files.list 1.7 - while read file; do 1.8 - [ -L "fs/$file" ] && continue 1.9 - [ -f "fs/$file" ] || continue 1.10 - md5sum "fs/$file" | sed 's/ fs/ /' 1.11 - done < files.list > md5sum 1.12 cat > receipt <<EOT 1.13 # SliTaz package receipt. 1.14 1.15 @@ -1236,10 +1231,17 @@ 1.16 find . -type l -print >> ../files.list 1.17 cd .. && sed -i s/'^.'/''/ files.list 1.18 status 1.19 + echo -n "Creating md5sum of files..." 1.20 + while read file; do 1.21 + [ -L "fs$file" ] && continue 1.22 + [ -f "fs$file" ] || continue 1.23 + md5sum "fs$file" | sed 's/ fs/ /' 1.24 + done < files.list > md5sum 1.25 + status 1.26 # Build cpio archives. 1.27 echo -n "Compressing the fs... " 1.28 - find fs -print | cpio -o -H newc > fs.cpio 1.29 - gzip fs.cpio && rm -rf fs 1.30 + find fs -print | cpio -o -H newc | gzip > fs.cpio.gz 1.31 + rm -rf fs 1.32 echo -n "Creating full cpio archive... " 1.33 find . -print | cpio -o -H newc > ../$PACKAGE.tazpkg 1.34 echo -n "Restoring original package tree... "