cookutils rev 668
cook: add --continue option to continue pkg compile when developing/porting
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 05 05:48:34 2014 +0200 (2014-04-05) |
parents | 88b59ea55bff |
children | 385b2ace5076 |
files | cook |
line diff
1.1 --- a/cook Wed Apr 02 23:30:56 2014 +0200 1.2 +++ b/cook Sat Apr 05 05:48:34 2014 +0200 1.3 @@ -54,6 +54,7 @@ 1.4 --cdeps Cook : $(_ "check dependencies of cooked package.") 1.5 --pack Cook : $(_ "repack an already built package.") 1.6 --debug Cook : $(_ "display debugging messages.") 1.7 + --continue Cook : $(_ "continue running compile_rules.") 1.8 --interactive|-x New : $(_ "create a receipt interactively.") 1.9 --wok Setup: $(_ "clone the cooking wok from Hg repo.") 1.10 --stable Setup: $(_ "clone the stable wok from Hg repo.") 1.11 @@ -523,15 +524,15 @@ 1.12 1.13 [ "$QA" ] && receipt_quality 1.14 cd $pkgdir 1.15 - rm -rf install taz source 2> /dev/null 1.16 + [ "$continue" ] || rm -rf source 2> /dev/null 1.17 + rm -rf install taz 2> /dev/null 1.18 1.19 # Disable -pipe if less than 512Mb free RAM. 1.20 free=$(free | fgrep '/+ buffers' | tr -s ' ' | cut -f 4 -d ' ') 1.21 if [ "$free" -lt 524288 ] && [ "$CFLAGS" != "${CFLAGS/-pipe}" ]; then 1.22 - _ "Disabling -pipe compile flag: \$free RAM" 1.23 - CFLAGS="${CFLAGS/-pipe}" && CFLAGS=$(echo "$CFLAGS" | tr -s ' ') 1.24 - CXXFLAGS="${CXXFLAGS/-pipe}" && \ 1.25 - CXXFLAGS=$(echo "$CXXFLAGS" | tr -s ' ') 1.26 + _ "Disabling -pipe compile flag: \$free RAM" 1.27 + CFLAGS="${CFLAGS/-pipe}" && CFLAGS=$(echo "$CFLAGS" | tr -s ' ') 1.28 + CXXFLAGS="${CXXFLAGS/-pipe}" && CXXFLAGS=$(echo "$CXXFLAGS" | tr -s ' ') 1.29 fi 1.30 unset free 1.31