tazwok rev 138

tazwok: regen add packages depending on compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 29 11:49:34 2009 +0200 (2009-06-29)
parents 711dd1c7d1c6
children b07f8b1c7002
files tazwok
line diff
     1.1 --- a/tazwok	Mon Jun 22 01:58:01 2009 +0200
     1.2 +++ b/tazwok	Mon Jun 29 11:49:34 2009 +0200
     1.3 @@ -350,6 +350,10 @@
     1.4  			echo "$PACKAGE compiled on : `date +%Y%m%d\ \%H:%M:%S`"
     1.5  			echo ""
     1.6  			echo "compilation done : `date +%Y%m%d\ \%H:%M:%S`" >> $LOG
     1.7 +
     1.8 +			for i in $( grep -l "WANTED=\"$PACKAGE\"" $WOK/*/receipt) ; do
     1.9 +				tazwok genpkg $(basename $(dirname $i))
    1.10 +			done
    1.11  		else
    1.12  			echo "================================================================================"
    1.13  			echo "Compilation failed. Please read the compilator output."
    1.14 @@ -580,8 +584,8 @@
    1.15  		description.txt 2> /dev/null | awk '{ sz=$1 } END { print sz }')
    1.16  	status
    1.17  	echo -n "Updating receipt sizes..."
    1.18 -	sed -i s/^PACKED_SIZE.*$// receipt
    1.19 -	sed -i s/^UNPACKED_SIZE.*$// receipt
    1.20 +	sed -i '/^PACKED_SIZE/d' receipt
    1.21 +	sed -i '/^UNPACKED_SIZE/d' receipt
    1.22  	sed -i "s/^PACKAGE=/PACKED_SIZE=\"$PACKED_SIZE\"\nUNPACKED_SIZE=\"$UNPACKED_SIZE\"\nPACKAGE=/" receipt
    1.23  	sed -i "s/^VERSION=$/VERSION=\"$VERSION\"/" receipt
    1.24  	status