diff options
author | eschnett <eschnett@ba58616d-3abc-4c77-8745-3ba8ad4a582f> | 2011-11-10 16:15:58 +0000 |
---|---|---|
committer | eschnett <eschnett@ba58616d-3abc-4c77-8745-3ba8ad4a582f> | 2011-11-10 16:15:58 +0000 |
commit | 3bbd21bea8f3ab3e6d33a2d43900b0ef2e2f8bab (patch) | |
tree | d856a7edaf2b58b9b8f479fe1e43e41dcaecc2d3 | |
parent | d8b9b29e8d20391e0cc06cc89e2aba9520d37494 (diff) |
Accept LIBJPEG_DIR=BUILD case-independently
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/libjpeg/trunk@14 ba58616d-3abc-4c77-8745-3ba8ad4a582f
-rwxr-xr-x | libjpeg.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -14,7 +14,9 @@ set -e # Abort on errors # Build ################################################################################ -if [ -z "${LIBJPEG_DIR}" -o "${LIBJPEG_DIR}" = 'BUILD' ]; then +if [ -z "${LIBJPEG_DIR}" \ + -o "$(echo "${LIBJPEG_DIR}" | tr '[a-z]' '[A-Z]')" = 'BUILD' ] +then echo "BEGIN MESSAGE" echo "Building libjpeg..." echo "END MESSAGE" |