tazwok diff tazwok @ rev 89

Update VERSION in receipt if necessary
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 31 08:48:54 2008 +0000 (2008-08-31)
parents 07f7cadc87e1
children 2bc1463b92c2
line diff
     1.1 --- a/tazwok	Thu Aug 28 12:19:52 2008 +0000
     1.2 +++ b/tazwok	Sun Aug 31 08:48:54 2008 +0000
     1.3 @@ -474,6 +474,12 @@
     1.4  	echo -n "Copying the receipt..."
     1.5  	cp receipt taz/$PACKAGE-$VERSION
     1.6  	status
     1.7 +	if grep -q ^get_version $RECEIPT; then
     1.8 +		echo -n "Update version in receipt..."
     1.9 +		sed -i "s/^VERSION=.*/VERSION=\"$VERSION\"/" \
    1.10 +			taz/$PACKAGE-$VERSION/receipt
    1.11 +		status
    1.12 +	fi
    1.13  	if [ -f "description.txt" ]; then
    1.14  		echo -n "Copying the description file..."
    1.15  		cp description.txt taz/$PACKAGE-$VERSION