5 SHLIB_COMPAT=$(dirname $0)/shlib-compat.py
8 echo "Usage: $0 orig-dir new-dir output-dir"
28 echo "file not found: $1"
34 rorig=`realpath $orig`
36 list=`(cd $rorig; ls; cd $rnew; ls) | sort -u`
39 test_file $orig/$i $new/$i || continue
40 $SHLIB_COMPAT --out-orig $out/$i.orig.c --out-new $out/$i.new.c -v "$@" \
41 $orig/$i $new/$i > $out/$i.cmp 2> $out/$i.err || true
42 remove_empty $out/$i.orig.c $out/$i.new.c $out/$i.cmp $out/$i.err
43 if [ -f $out/$i.orig.c -a -f $out/$i.new.c ]; then
44 astyle --quiet --style=bsd -k3 $out/$i.orig.c $out/$i.new.c
45 rm -f $out/$i.orig.c.orig $out/$i.new.c.orig
46 diff -u $out/$i.orig.c $out/$i.new.c > $out/$i.diff || true