diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-12-08 09:16:14 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-12-08 09:16:14 +0000 |
commit | 8404d8841f5fd58fe31de09090867115e97c5261 (patch) | |
tree | a5781d258f068f1b9f90eabd84ac932969820b1e | |
parent | ded6dc5186cb7f8c64cb06a8591b9f787122c6f1 (diff) |
allow tool_run to run a failure command
Original commit message from CVS:
allow tool_run to run a failure command
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gst-autogen.sh | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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 } } |