source: trunk/server/buildtools/mktowscript/rebuild_all.sh

Last change on this file was 745, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.0

File size: 761 bytes
Line 
1#!/bin/sh
2
3cat mklist.txt |
4while read line; do
5 ws=""
6 list=""
7 for f in $line; do
8 echo "Processing $f"
9 f="../../$f"
10 test -f $f || {
11 echo "$f doesn't exist"
12 exit 1
13 }
14 ws="$(dirname $f)/wscript_build"
15 if [ -f $ws ]; then
16 if test -s $ws && ! grep "AUTOGENERATED.by.mktowscript" $ws > /dev/null; then
17 echo "Skipping manually edited file $ws"
18 continue
19 fi
20 fi
21 list="$list $f"
22 done
23 if [ "$list" = "" ]; then
24 continue
25 fi
26 ./mktowscript.pl $list > wscript_build.$$ || {
27 echo "Failed on $f"
28 rm -f wscript_build.$$
29 exit 1
30 }
31 if cmp wscript_build.$$ $ws > /dev/null 2>&1; then
32 rm -f wscript_build.$$
33 else
34 mv wscript_build.$$ $ws || exit 1
35 fi
36 #exit 1
37done
Note: See TracBrowser for help on using the repository browser.