3 # compare the generated files from a waf
5 old_build
=$HOME/samba_old
7 gen_files
=$
(cd bin
/default
&& find .
-type f
-name '*.[ch]')
16 grep -v 'The following definitions come from' |
17 grep -v 'Automatically generated at' |
18 grep -v 'Generated from' |
19 sed 's|/home/tnagy/samba/source4||g' |
20 sed 's|/home/tnagy/samba/|../|g' |
21 sed 's|bin/default/source4/||g' |
22 sed 's|bin/default/|../|g' |
23 sed 's/define _____/define ___/g' |
24 sed 's/define __*/define _/g' |
25 sed 's/define _DEFAULT_/define _/g' |
26 sed 's/define _SOURCE4_/define ___/g' |
27 sed 's/define ___/define _/g' |
28 sed 's/ifndef ___/ifndef _/g' |
29 sed 's|endif /* ____|endif /* __|g' |
30 sed s
/__DEFAULT_SOURCE
4/__
/ |
31 sed s
/__DEFAULT_SOURCE
4/__
/ |
32 sed s
/__DEFAULT
/____
/ > $out_file
41 strip_file
$old_build/$f $t1
42 strip_file bin
/default
/$f $t2
43 diff -u -b $t1 $t2 2>&1
47 for f
in $gen_files; do