summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-12-08 09:16:14 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-12-08 09:16:14 +0000
commit8404d8841f5fd58fe31de09090867115e97c5261 (patch)
treea5781d258f068f1b9f90eabd84ac932969820b1e
parentded6dc5186cb7f8c64cb06a8591b9f787122c6f1 (diff)
downloadgstreamer-common-8404d8841f5fd58fe31de09090867115e97c5261.tar.gz
allow tool_run to run a failure command
Original commit message from CVS: allow tool_run to run a failure command
-rw-r--r--ChangeLog5
-rw-r--r--gst-autogen.sh2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cd6e8c7..da55e02 100644
--- 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
diff --git a/gst-autogen.sh b/gst-autogen.sh
index 6b4c729..97b2c20 100644
--- a/gst-autogen.sh
+++ b/gst-autogen.sh
@@ -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
}
}