summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-02-19 18:58:28 +0000
committertruelight <truelight@openttd.org>2007-02-19 18:58:28 +0000
commit8b97c5f240e1485d20802f21f1d96e3508cbf046 (patch)
tree30821691c9775cc979be239b96577eba9590dee6 /config.lib
parentb5cc9c5c56b240344ac61d3db299338734dc71e5 (diff)
downloadopenttd-8b97c5f240e1485d20802f21f1d96e3508cbf046.tar.xz
(svn r8813) -Fix r8812: fixed one GNU depending grep statement with an other ;) Switched to egrep, which should work just fine.
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.lib b/config.lib
index 80c8231bd..2276baff3 100644
--- a/config.lib
+++ b/config.lib
@@ -291,13 +291,13 @@ check_params() {
# Check if all params have valid values
# Endian only allows AUTO, LE and, BE
- if [ -z "`echo $endian | grep '^AUTO$\|^LE$\|^BE$'`" ]; then
+ if [ -z "`echo $endian | egrep '^(AUTO|LE|BE)$'`" ]; then
echo "configure: error: invalid option --endian=$endian"
echo " Available options are: --endian=[AUTO|LE|BE]"
exit 1
fi
# OS only allows DETECT, UNIX, OSX, FREEBSD, MORPHOS, BEOS, SUNOS, CYGWIN, MINGW, OS2, WINCE, and PSP
- if [ -z "`echo $os | grep '^DETECT$\|^UNIX$\|^OSX$\|^FREEBSD$\|^MORPHOS$\|^BEOS$\|^SUNOS$\|^CYGWIN$\|^MINGW$\|^OS2$\|^WINCE$\|^PSP$'`" ]; then
+ if [ -z "`echo $os | egrep '^(DETECT|UNIX|OSX|FREEBSD|MORPHOS|BEOS|SUNOS|CYGWIN|MINGW|OS2|WINCE|PSP)$'`" ]; then
echo "configure: error: invalid option --os=$os"
echo " Available options are: --os=[DETECT|UNIX|OSX|FREEBSD|MORPHOS|BEOS|SUNOS|CYGWIN|MINGW|OS2|WINCE|PSP]"
exit 1