tazwok rev 549

Compat: execute compile_rules() from directory when possible to match cookutils behavior
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 01:21:18 2011 +0100 (2011-12-10)
parents 713a5580cf9a
children 176f3c91b68a e5822926cd30
files tazwok
line diff
     1.1 --- a/tazwok	Fri Dec 09 22:43:04 2011 +0100
     1.2 +++ b/tazwok	Sat Dec 10 01:21:18 2011 +0100
     1.3 @@ -630,7 +630,11 @@
     1.4  	if grep -q ^compile_rules $RECEIPT; then
     1.5  		echo "executing compile_rules" >> $LOG
     1.6  		report step "Executing compile_rules"
     1.7 -		cd $WOK/$PACKAGE
     1.8 +		if [ -d "$src" ]; then
     1.9 +			cd "$src"
    1.10 +		else
    1.11 +			cd $WOK/$PACKAGE
    1.12 +		fi
    1.13  		rm -f /tmp/config.site
    1.14  		ulimit -d unlimited
    1.15  		ulimit -m unlimited