summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-04-26 13:42:59 +0300
committerStefan Kost <ensonic@users.sf.net>2011-04-26 15:17:29 +0300
commite32a6f947106382898750d4af77151cd42ce5886 (patch)
treee4c6792096c9538fe5fd5ee447a5247056c66558 /tools
parenta161f901ebd621de04a40ebb0c51dab760e261ab (diff)
downloadgstreamer-plugins-bad-e32a6f947106382898750d4af77151cd42ce5886.tar.gz
element-maker: make it fail, when compilation fails
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gst-element-maker8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gst-element-maker b/tools/gst-element-maker
index 6db321d5b..81c5d7a28 100755
--- a/tools/gst-element-maker
+++ b/tools/gst-element-maker
@@ -380,6 +380,12 @@ gst-indent $gstreplace.c
echo pkg is $pkg
gcc -Wall -fPIC $(pkg-config --cflags gstreamer-0.10 $pkg) -c -o $gstreplace.o $gstreplace.c
-gcc -shared -o $gstreplace.so $gstreplace.o $(pkg-config --libs gstreamer-0.10 $pkg)
+if test $? -ne 0; then
+ exit 1
+fi
+gcc -shared -o $gstreplace.so $gstreplace.o $(pkg-config --libs gstreamer-0.10 $pkg)
+if test $? -ne 0; then
+ exit 1
+fi