cookutils diff cookall.sh @ rev 739

cook: remove python and perl compiled files unconditionally
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 27 00:23:28 2015 +0300 (2015-05-27)
parents 3ebd308cccc7
children fcc595470268
line diff
     1.1 --- a/cookall.sh	Thu Mar 12 08:44:11 2015 +0100
     1.2 +++ b/cookall.sh	Wed May 27 00:23:28 2015 +0300
     1.3 @@ -2,15 +2,16 @@
     1.4  
     1.5  DONELIST=${1:-/tmp/donelist}
     1.6  
     1.7 -. /home/slitaz/wok/slitaz-toolchain/receipt
     1.8 +. /etc/slitaz/cook.conf
     1.9 +. $WOK/slitaz-toolchain/receipt
    1.10  SLITAZ_TOOLCHAIN="slitaz-toolchain $DEPENDS"
    1.11  touch $DONELIST
    1.12  while true; do
    1.13  	chmod +x $DONELIST
    1.14 -	for i in /home/slitaz/wok/*/receipt ; do
    1.15 +	for i in $WOK/*/receipt ; do
    1.16  		pkg=$(basename ${i%/receipt})
    1.17  		grep -q "^$pkg$" $DONELIST && continue
    1.18 -		grep -q "^$pkg$" /home/slitaz/cache/broken && continue
    1.19 +		grep -q "^$pkg$" $CACHE/broken && continue
    1.20  		unset BUILD_DEPENDS WANTED
    1.21  		HOST_ARCH="i486"
    1.22  		. $i
    1.23 @@ -20,17 +21,17 @@
    1.24  		esac
    1.25  		for j in $WANTED ; do
    1.26  			grep -q "^$j$" $DONELIST || continue 2
    1.27 -			grep -q "^$j$" /home/slitaz/cache/broken && continue 2
    1.28 +			grep -q "^$j$" $CACHE/broken && continue 2
    1.29  		done
    1.30  		for j in $BUILD_DEPENDS ; do
    1.31  			case " $SLITAZ_TOOLCHAIN " in
    1.32  			*\ $j\ *) continue ;;
    1.33  			esac
    1.34  			grep -q "^$j$" $DONELIST || continue 2
    1.35 -			grep -q "^$j$" /home/slitaz/cache/broken && continue 2
    1.36 +			grep -q "^$j$" $CACHE/broken && continue 2
    1.37  		done
    1.38  		cooker pkg $PACKAGE
    1.39 -		[ /home/slitaz/packages/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue
    1.40 +		[ $PKGS/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue
    1.41  		echo $PACKAGE >> $DONELIST
    1.42  		chmod -x $DONELIST
    1.43  	done
    1.44 @@ -38,10 +39,10 @@
    1.45  	# try to break build dep loops...
    1.46  	for pkg in gettext python udev cups libQtClucene menu-cache tzdata ; do
    1.47  		grep -q "^$pkg$" $DONELIST && continue
    1.48 -		grep -q "^$pkg$" /home/slitaz/cache/broken && continue
    1.49 -		. /home/slitaz/wok/$pkg/receipt
    1.50 +		grep -q "^$pkg$" $CACHE/broken && continue
    1.51 +		. $WOK/$pkg/receipt
    1.52  		cooker pkg $PACKAGE
    1.53 -		[ /home/slitaz/packages/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue
    1.54 +		[ $PKGS/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue
    1.55  		echo $PACKAGE >> $DONELIST
    1.56  		continue 2
    1.57  	done
    1.58 @@ -50,7 +51,7 @@
    1.59  
    1.60  TODOLIST=/tmp/todolist
    1.61  # list packages to build and their (build) dependancies
    1.62 -for i in /home/slitaz/wok/*/receipt ; do
    1.63 +for i in $WOK/*/receipt ; do
    1.64  	grep -q "^$(basename ${i%/receipt})$" $DONELIST && continue
    1.65  	unset BUILD_DEPENDS WANTED
    1.66  	HOST_ARCH="i486"