diff options
Diffstat (limited to 'buildtools/mktowscript/rebuild_all.sh')
-rwxr-xr-x | buildtools/mktowscript/rebuild_all.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/buildtools/mktowscript/rebuild_all.sh b/buildtools/mktowscript/rebuild_all.sh new file mode 100755 index 0000000000..d13eb93a4b --- /dev/null +++ b/buildtools/mktowscript/rebuild_all.sh @@ -0,0 +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 + fi + fi + ./mktowscript.pl $f > wscript_build.$$ || { + echo "Failed on $f" + rm -f wscript_build.$$ + exit 1 + } + if cmp wscript_build.$$ $ws 2> /dev/null; then + rm -f wscript_build.$$ + else + mv wscript_build.$$ $ws || exit 1 + fi + #exit 1 +done |