summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDafydd Harries <dafydd.harries@collabora.co.uk>2007-02-10 13:40:00 +0000
committerDafydd Harries <dafydd.harries@collabora.co.uk>2007-02-10 13:40:00 +0000
commit14c0d3851de695e8bd3c3959afed09e6824f763a (patch)
treeb5483640a648cec244ddda4f40c017934dd8a362 /scripts
parent5e2b888e36167259959ab59401ecc4b35eb5f527 (diff)
downloadlibnice-14c0d3851de695e8bd3c3959afed09e6824f763a.tar.gz
check-symbols.sh: check diff length rather than using cmp exit code
darcs-hash:20070210134031-c9803-f92c6e72c14ac90ef212cd072dae5974d6239e68.gz
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-symbols.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/check-symbols.sh b/scripts/check-symbols.sh
index a726757..de5c18f 100755
--- a/scripts/check-symbols.sh
+++ b/scripts/check-symbols.sh
@@ -19,12 +19,13 @@ if ! test -f "$symbol_file"; then
exit 1
fi
+diff=`sh $make_symbol_list "$lib" | \
+ diff -uB "$symbol_file" - | tail -n +3`
+
# stop if there are no differences
-sh $make_symbol_list "$lib" | cmp -s "$symbol_file" - && exit 0
+test -z "$diff" && exit 0
echo "symbols for $lib changed"
-diff=`sh $make_symbol_list "$lib" | \
- diff -u "$symbol_file" - | tail -n +3`
if echo "$diff" | grep -q '^-'; then
echo " missing:"