# HG changeset patch # User Aleksej Bobylev # Date 1482110108 -7200 # Node ID c1f4d81d16e71f6ac6a75f68f920fdbdeb86a764 # Parent cc73035433abdc47e5a0464809beb38c6d3f704b cook: with splitted packages (they all should be updated anyway) Cook all the 22 coreutils* packages at once: `cook coreutils -ws` diff -r cc73035433ab -r c1f4d81d16e7 cook --- a/cook Wed Dec 14 23:03:59 2016 +0200 +++ b/cook Mon Dec 19 03:15:08 2016 +0200 @@ -51,6 +51,7 @@ cook --clean -c $(_ 'clean the package in the wok.') --install -i $(_ 'cook and install the package.') + --wsplit -ws $(_ 'cook the package and then all the splitted ones.') --getsrc -gs $(_ 'get the package source tarball.') --block -b $(_ 'block a package so cook will skip it.') --unblock -ub $(_ 'unblock a blocked package.') @@ -2415,9 +2416,17 @@ [ -s /aufs-umount.sh ] || install_package - # Finally we DON'T WANT to build the *-dev or packages with WANTED="$pkg" - # You want automation: use the Cooker Build Bot. - rm -f $command ;; + rm -f $command + + # Cook splitted packages that builds from the files of just builded package + if [ "$2" == '--wsplit' -o "$2" == '-ws' ]; then + splitted=$(SPLIT=''; . $WOK/$pkg/receipt; echo $SPLIT) + [ "${splitted/$pkg-dev/}" == "$splitted" ] && splitted="$pkg-dev $splitted" + for i in $splitted; do + [ -d "$WOK/$i" ] && cook $i + done + fi + ;; esac exit 0