tazwok rev 59
Add SIZEs in receipt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 16 09:27:57 2008 +0000 (2008-05-16) |
parents | cd898054c132 |
children | 6ce244216547 |
files | tazwok |
line diff
1.1 --- a/tazwok Thu May 08 17:20:04 2008 +0200 1.2 +++ b/tazwok Fri May 16 09:27:57 2008 +0000 1.3 @@ -463,10 +463,17 @@ 1.4 LAST_FILE="$file" 1.5 done > files.list 1.6 status 1.7 + UNPACKED_SIZE=$(du -hs . | awk '{ print $1 }') 1.8 # Build cpio archives. Find, cpio and gzip the fs, finish by 1.9 # removing the fs tree. 1.10 echo -n "Compressing the fs... " 1.11 find fs -print | cpio -o -H newc | gzip > fs.cpio.gz && rm -rf fs 1.12 + PACKED_SIZE=$(du -hs . | awk '{ print $1 }') 1.13 + echo -n "Undating receipt sizes..." 1.14 + sed -i s/^PACKED_SIZE.*$// receipt 1.15 + sed -i s/^UNPACKED_SIZE.*$// receipt 1.16 + sed -i "s/^PACKAGE=/PACKED_SIZE=\"$PACKED_SIZE\"\nUNPACKED_SIZE=\"$UNPACKED_SIZE\"\nPACKAGE=/" receipt 1.17 + status 1.18 echo -n "Creating full cpio archive... " 1.19 find . -print | cpio -o -H newc > $PACKAGES_REPOSITORY/$PACKAGE-$VERSION.tazpkg 1.20 # Restore package tree in case we want to browse it.