allow tool_run to run a failure command
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 8 Dec 2004 09:16:14 +0000 (09:16 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 8 Dec 2004 09:16:14 +0000 (09:16 +0000)
Original commit message from CVS:
allow tool_run to run a failure command

ChangeLog
gst-autogen.sh

index cd6e8c7..da55e02 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-08  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * gst-autogen.sh:
+         allow failure command to be run so we can clean upfrom autopoint
+
 2004-09-03  Zeeshan Ali Khattak <zeenix@gmail.com>
        * m4/gst-feature.m4: Trying to correct the GST_CHECK_CONFIGPROG macro
 
index 6b4c729..97b2c20 100644 (file)
@@ -291,10 +291,12 @@ tool_run ()
 {
   tool=$1
   options=$2
+  run_if_fail=$3
   echo "+ running $tool $options..."
   $tool $options || {
     echo
     echo $tool failed
+    eval $run_if_fail
     exit 1
   }
 }