summaryrefslogtreecommitdiff
path: root/tools/test_scripts
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2013-05-21 16:19:36 +0200
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2013-05-21 16:19:36 +0200
commitab277aac48ded3783697c9642062109cbff58a3a (patch)
tree1eaa6f0852133fd64385cd3392f92407fb73b62c /tools/test_scripts
parent8cb94c761cfed43204d814d9494ed9ad98694193 (diff)
downloadglibmm-ab277aac48ded3783697c9642062109cbff58a3a.tar.gz
tools: Improve the testheaders.sh script.
* tools/test_scripts/testheaders.sh: Stop if pkg-config fails.
Diffstat (limited to 'tools/test_scripts')
-rwxr-xr-xtools/test_scripts/testheaders.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/test_scripts/testheaders.sh b/tools/test_scripts/testheaders.sh
index f91a9f56..b6de3976 100755
--- a/tools/test_scripts/testheaders.sh
+++ b/tools/test_scripts/testheaders.sh
@@ -60,6 +60,11 @@ do
done
CFLAGS="$idirs `pkg-config --cflags $pkg`"
+if [ $? -ne 0 ]
+then
+ echo "pkg-config failed"
+ usage
+fi
echo CFLAGS=$CFLAGS
# Compile the specified files