--- src/jpeg2hdrgen.orig Wed Aug 23 07:25:58 2006 +++ src/jpeg2hdrgen Thu Jun 21 14:34:33 2007 @@ -28,18 +28,25 @@ export LC_ALL -JHEAD="jhead" # program for extracting exif info from jpegs - -TEST_JHEAD=`which jhead`; -if [ "$TEST_JHEAD" = "" ]; then - echo "Program 'jhead' is required to run this script." - echo "Install appropriate software, for example from:" - echo "http://www.sentex.net/~mwandel/jhead/" +JHEAD='jhead' # program for extracting exif info from jpegs +EXIF='exif' # another one +EXIV2='exiv2' # and one more + +CMD=`which ${JHEAD}` +[ -n "${CMD}" ] || CMD=`which ${EXIF}` +[ -n "${CMD}" ] || CMD=`which ${EXIV2}` +if [ -z "${CMD}" ] +then + cat <