build: recognise manpages keyword
[ira/wip.git] / buildtools / mktowscript / rebuild_all.sh
1 #!/bin/bash
2
3 cat mklist.txt |
4 while read f; do
5     echo "Processing $f"
6     f="../../$f"
7     test -f $f || {
8         echo "$f doesn't exist"
9         exit 1
10     }
11     ws="$(dirname $f)/wscript_build"
12     if [ -f $ws ]; then
13         if ! grep "AUTOGENERATED.by.mktowscript" $ws > /dev/null; then
14             echo "Skipping manually edited file $ws"
15             continue
16         fi
17     fi
18     ./mktowscript.pl $f > wscript_build.$$ || {
19         echo "Failed on $f"
20         rm -f wscript_build.$$
21         exit 1
22     }
23     if cmp wscript_build.$$ $ws > /dev/null 2>&1; then
24         rm -f wscript_build.$$
25     else
26         mv wscript_build.$$ $ws || exit 1
27     fi
28     #exit 1
29 done