allow tool_run to run a failure command

Original commit message from CVS:
allow tool_run to run a failure command
parent ded6dc51
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
......
......@@ -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
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment