From 07eeed33f63754b4fa4ab629e52e423b04b59bb6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Mar 2010 20:21:47 +1100 Subject: build: heimdal_build waf support heimdal now mostly builds --- buildtools/mktowscript/rebuild_all.sh | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'buildtools/mktowscript/rebuild_all.sh') diff --git a/buildtools/mktowscript/rebuild_all.sh b/buildtools/mktowscript/rebuild_all.sh index 5209eee50b..23622b2abe 100755 --- a/buildtools/mktowscript/rebuild_all.sh +++ b/buildtools/mktowscript/rebuild_all.sh @@ -1,21 +1,29 @@ #!/bin/bash cat mklist.txt | -while read f; do - echo "Processing $f" - f="../../$f" - test -f $f || { - echo "$f doesn't exist" - exit 1 - } - ws="$(dirname $f)/wscript_build" - if [ -f $ws ]; then - if ! grep "AUTOGENERATED.by.mktowscript" $ws > /dev/null; then - echo "Skipping manually edited file $ws" - continue +while read line; do + ws="" + list="" + for f in $line; do + echo "Processing $f" + f="../../$f" + test -f $f || { + echo "$f doesn't exist" + exit 1 + } + ws="$(dirname $f)/wscript_build" + if [ -f $ws ]; then + if test -s $ws && ! grep "AUTOGENERATED.by.mktowscript" $ws > /dev/null; then + echo "Skipping manually edited file $ws" + continue + fi fi + list="$list $f" + done + if [ "$list" = "" ]; then + continue fi - ./mktowscript.pl $f > wscript_build.$$ || { + ./mktowscript.pl $list > wscript_build.$$ || { echo "Failed on $f" rm -f wscript_build.$$ exit 1 -- cgit