diff options
author | smatz <smatz@openttd.org> | 2008-07-31 14:32:35 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-07-31 14:32:35 +0000 |
commit | f13fec3158ef5f122ad622680ffdbba4afb506f6 (patch) | |
tree | 5a4f8faa9a34a6125a7b45aa3cdec48939a9a6fd | |
parent | 05040910b85528e598a6b3573223b9ad1ab1ace6 (diff) | |
download | openttd-f13fec3158ef5f122ad622680ffdbba4afb506f6.tar.xz |
(svn r13894) -Fix: bashisms in configure and Makefile.in
-rw-r--r-- | Makefile.in | 2 | ||||
-rwxr-xr-x | configure | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index 2d26a8b0f..819d5835b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -37,7 +37,7 @@ REVISION = !!REVISION!! AWK = !!AWK!! DISTCC = !!DISTCC!! -RES := $(shell if ! [ -f $(CONFIG_CACHE_SOURCE_LIST) ] || [ -n "`cmp $(CONFIG_CACHE_SOURCE_LIST) $(SOURCE_LIST)`" ]; then cp $(SOURCE_LIST) $(CONFIG_CACHE_SOURCE_LIST); fi ) +RES := $(shell if [ ! -f $(CONFIG_CACHE_SOURCE_LIST) ] || [ -n "`cmp $(CONFIG_CACHE_SOURCE_LIST) $(SOURCE_LIST)`" ]; then cp $(SOURCE_LIST) $(CONFIG_CACHE_SOURCE_LIST); fi ) all: config.cache ifdef DISTCC @@ -32,7 +32,7 @@ MEDIA_DIR="$ROOT_DIR/media" SOURCE_LIST="$ROOT_DIR/source.list" if [ "$1" = "--reconfig" ] || [ "$1" = "--reconfigure" ]; then - if ! [ -f "config.cache" ]; then + if [ ! -f "config.cache" ]; then echo "can't reconfigure, because never configured before" exit 1 fi @@ -43,7 +43,9 @@ if [ "$1" = "--reconfig" ] || [ "$1" = "--reconfigure" ]; then exit $? fi -export SHOW_HELP="0" +# 'export SHOW_HELP="0"' doesn't work on some systems +SHOW_HELP="0" +export SHOW_HELP set_default detect_params "$@" @@ -70,7 +72,7 @@ else PIPE_SORT="$sort" fi -if ! [ -f "$LANG_DIR/english.txt" ]; then +if [ ! -f "$LANG_DIR/english.txt" ]; then echo "Languages not found in $LANG_DIR. Can't continue without it." echo "Please make sure the dir exists and contains at least english.txt" fi |