diff options
author | truelight <truelight@openttd.org> | 2007-02-19 16:24:10 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-02-19 16:24:10 +0000 |
commit | 246ea5b195b8715599264578124a74d78f2bd2d9 (patch) | |
tree | e950efbfa1436fbf8f24a96f7493de9ece7dbc9d | |
parent | f5cffcc1fccf0f2f45f67513b39bede46ed7e686 (diff) | |
download | openttd-246ea5b195b8715599264578124a74d78f2bd2d9.tar.xz |
(svn r8811) [Configure] -Fix: [:lower:] for tr is GNU specific. Use [a-z] instead. (Celestar)
-rw-r--r-- | config.lib | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config.lib b/config.lib index 85b8e0358..6f9840681 100644 --- a/config.lib +++ b/config.lib @@ -285,8 +285,8 @@ check_params() { # Some params want to be in full uppercase, else they might not work as # expected.. fix that here - endian=`echo $endian | tr [:lower:] [:upper:]` - os=`echo $os | tr [:lower:] [:upper:]` + endian=`echo $endian | tr '[a-z]' '[A-Z]'` + os=`echo $os | tr '[a-z]' '[A-Z]'` # Check if all params have valid values @@ -548,7 +548,7 @@ check_params() { log 1 "detecting G5... yes (forced)" else # First, are we a real OSX system, else we can't detect it - native=`LC_ALL=C uname | tr [:upper:] [:lower:] | grep darwin` + native=`LC_ALL=C uname | tr '[A-Z]' '[a-z]' | grep darwin` # If $host doesn't match $build , we are cross-compiling if [ -n "$native" ] && [ "$build" != "$host" ]; then $cc_build $SRC_DIR/os/macosx/G5_detector.cpp -o G5_detector @@ -1144,7 +1144,7 @@ detect_os() { # Detect UNIX, OSX, FREEBSD, MORPHOS, BEOS, SUNOS, CYGWIN, MINGW, OS2, WINCE, and PSP # Try first via dumpmachine, then via uname - os=`echo "$host" | tr [:upper:] [:lower:] | awk ' + os=`echo "$host" | tr '[A-Z]' '[a-z]' | awk ' /linux/ { print "UNIX"; exit} /darwin/ { print "OSX"; exit} /freebsd/ { print "FREEBSD"; exit} @@ -1159,7 +1159,7 @@ detect_os() { '` if [ -z "$os" ]; then - os=`LC_ALL=C uname | tr [:upper:] [:lower:] | awk ' + os=`LC_ALL=C uname | tr '[A-Z]' '[a-z]' | awk ' /linux/ { print "UNIX"; exit} /darwin/ { print "OSX"; exit} /freebsd/ { print "FREEBSD"; exit} |