diff options
author | Stefan Kost <ensonic@users.sf.net> | 2011-04-26 13:42:59 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2011-04-26 15:17:29 +0300 |
commit | e32a6f947106382898750d4af77151cd42ce5886 (patch) | |
tree | e4c6792096c9538fe5fd5ee447a5247056c66558 /tools | |
parent | a161f901ebd621de04a40ebb0c51dab760e261ab (diff) |
element-maker: make it fail, when compilation fails
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gst-element-maker | 8 |
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 |