cookutils rev 849
cook: with splitted packages (they all should be updated anyway)
Cook all the 22 coreutils* packages at once: `cook coreutils -ws`
Cook all the 22 coreutils* packages at once: `cook coreutils -ws`
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 19 03:15:08 2016 +0200 (2016-12-19) |
parents | cc73035433ab |
children | 9e21916774fb |
files | cook |
line diff
1.1 --- a/cook Wed Dec 14 23:03:59 2016 +0200 1.2 +++ b/cook Mon Dec 19 03:15:08 2016 +0200 1.3 @@ -51,6 +51,7 @@ 1.4 cook <pkg> 1.5 --clean -c $(_ 'clean the package in the wok.') 1.6 --install -i $(_ 'cook and install the package.') 1.7 + --wsplit -ws $(_ 'cook the package and then all the splitted ones.') 1.8 --getsrc -gs $(_ 'get the package source tarball.') 1.9 --block -b $(_ 'block a package so cook will skip it.') 1.10 --unblock -ub $(_ 'unblock a blocked package.') 1.11 @@ -2415,9 +2416,17 @@ 1.12 [ -s /aufs-umount.sh ] || 1.13 install_package 1.14 1.15 - # Finally we DON'T WANT to build the *-dev or packages with WANTED="$pkg" 1.16 - # You want automation: use the Cooker Build Bot. 1.17 - rm -f $command ;; 1.18 + rm -f $command 1.19 + 1.20 + # Cook splitted packages that builds from the files of just builded package 1.21 + if [ "$2" == '--wsplit' -o "$2" == '-ws' ]; then 1.22 + splitted=$(SPLIT=''; . $WOK/$pkg/receipt; echo $SPLIT) 1.23 + [ "${splitted/$pkg-dev/}" == "$splitted" ] && splitted="$pkg-dev $splitted" 1.24 + for i in $splitted; do 1.25 + [ -d "$WOK/$i" ] && cook $i 1.26 + done 1.27 + fi 1.28 + ;; 1.29 esac 1.30 1.31 exit 0