tazwok rev 72
Put EXTRAVERSION into receipt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 28 10:01:59 2008 +0000 (2008-06-28) |
parents | 7e213a12d8ca |
children | b82d34244ec4 |
files | tazwok |
line diff
1.1 --- a/tazwok Sat Jun 28 08:36:50 2008 +0000 1.2 +++ b/tazwok Sat Jun 28 10:01:59 2008 +0000 1.3 @@ -483,6 +483,12 @@ 1.4 sed -i s/^UNPACKED_SIZE.*$// receipt 1.5 sed -i "s/^PACKAGE=/PACKED_SIZE=\"$PACKED_SIZE\"\nUNPACKED_SIZE=\"$UNPACKED_SIZE\"\nPACKAGE=/" receipt 1.6 status 1.7 + if [ -n "$EXTRAVERSION" ]; then 1.8 + echo -n "Undating receipt EXTRAVERSION..." 1.9 + sed -i s/^EXTRAVERSION.*$// receipt 1.10 + sed -i "s/^VERSION=/EXTRAVERSION=\"$EXTRAVERSION\"\nVERSION=/" receipt 1.11 + status 1.12 + fi 1.13 echo -n "Creating full cpio archive... " 1.14 find . -print | cpio -o -H newc > $PACKAGES_REPOSITORY/$PACKAGE-$VERSION$EXTRAVERSION.tazpkg 1.15 # Restore package tree in case we want to browse it.