# HG changeset patch # User Pascal Bellard # Date 1425460540 -3600 # Node ID 073f946f667b78c2cb8f89bb66aee86c7a0aea12 # Parent 64d82abb86f6e3005a01dac2b014c0dd791f773a Add (re)cookall.sh diff -r 64d82abb86f6 -r 073f946f667b cookall.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cookall.sh Wed Mar 04 10:15:40 2015 +0100 @@ -0,0 +1,51 @@ +#!/bin/sh + +DONELIST=${1:-/tmp/donelist} + +. /home/slitaz/wok/slitaz-toolchain/receipt +SLITAZ_TOOLCHAIN="slitaz-toolchain $DEPENDS" +touch $DONELIST +while true; do + chmod +x $DONELIST + for i in /home/slitaz/wok/*/receipt ; do + grep -q "^$(basename ${i%/receipt})$" $DONELIST && continue + unset BUILD_DEPENDS WANTED + . $i + for j in $BUILD_DEPENDS $WANTED ; do + case " $SLITAZ_TOOLCHAIN " in + *\ $j\ *) continue ;; + esac + grep -q "^$j$" $DONELIST || continue 2 + done + cooker pkg $PACKAGE + [ /home/slitaz/packages/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue + echo $PACKAGE >> $DONELIST + chmod -x $DONELIST + done + [ -x $DONELIST ] || continue + # try to break build dep loops... + for i in gettext python udev cups libQtClucene menu-cache ; do + grep -q "^$i$" $DONELIST && continue + . /home/slitaz/wok/$i/receipt + cooker pkg $PACKAGE + [ /home/slitaz/packages/$PACKAGE-$VERSION*.tazpkg -nt $DONELIST ] || continue + echo $PACKAGE >> $DONELIST + continue 2 + done + break +done + +TODOLIST=/tmp/todolist +# list packages to build and their (build) dependancies +for i in /home/slitaz/wok/*/receipt ; do + grep -q "^$(basename ${i%/receipt})$" $DONELIST && continue + unset BUILD_DEPENDS WANTED + . $i + echo -n "$PACKAGE : " + for j in $BUILD_DEPENDS $WANTED ; do + grep -q "^$j$" $DONELIST || echo -n "$j " + done + echo +done > $TODOLIST +echo "$(wc -l $TODOLIST) packages unbuilt in $TODOLIST" +