element-maker: make it fail, when compilation fails
authorStefan Kost <ensonic@users.sf.net>
Tue, 26 Apr 2011 10:42:59 +0000 (13:42 +0300)
committerStefan Kost <ensonic@users.sf.net>
Tue, 26 Apr 2011 12:17:29 +0000 (15:17 +0300)
tools/gst-element-maker

index 6db321d..81c5d7a 100755 (executable)
@@ -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