Brought back and changed the testing mechanism for the different tools.

Now it just depends on the 'which' command's return value.
This commit is contained in:
Ignacio R. Morelle 2009-01-23 20:10:15 +00:00
parent 24924d0203
commit 4b9d25a5cc

View file

@ -148,14 +148,14 @@ done
# FIXME: disabled because it isn't working for Ivanovic.
# Probe optipng
#nice -n $opti_nice optipng -v 2> /dev/null 1> /dev/null ||
# report_absent_tool optipng 'http://www.cs.toronto.edu/~cosmin/pngtech/optipng/'
which optipng &> /dev/null ||
report_absent_tool optipng 'http://www.cs.toronto.edu/~cosmin/pngtech/optipng/'
# Probe IM's convert
#nice -n $opti_nice convert --help 2> /dev/null 1> /dev/null ||
# report_absent_tool convert 'http://www.imagemagick.org'
which convert &>/dev/null ||
report_absent_tool convert 'http://www.imagemagick.org'
# Probe advdef
#nice -n $opti_nice advdef --help 2> /dev/null 1> /dev/null ||
# report_absent_tool advdef 'http://advancemame.sourceforge.net/comp-readme.html'
which advdef &> /dev/null ||
report_absent_tool advdef 'http://advancemame.sourceforge.net/comp-readme.html'
# Set-up a trap to avoid leaving orphan tempfiles behind.
trap user_int HUP INT TERM