From 0b7ab719f343753d65b30173d4ffb87c5081c693 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 5 Jan 2007 23:43:20 +0000 Subject: [PATCH] (svn r7893) [0.5] -Fix (FS#485): the configure script did not work work for dash, a sh compatible shell. --- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 2fd2939547..4a59ee4c65 100755 --- a/configure +++ b/configure @@ -3,7 +3,7 @@ # This 'configure' script is a very easy wrapper around 'make updateconf' # It allows cross-compilers to do their job much more easy. -function showhelp() { +showhelp() { echo "Configure for OpenTTD" echo "" echo "Usage:" @@ -48,7 +48,7 @@ function showhelp() { echo " " } -function handle() { +handle() { PARAM="$PARAM \"$1=`awk 'BEGIN { FS="="; $0="'"$2"'"; print $2;}'`\"" } @@ -309,9 +309,9 @@ fi # First remove the Makefile.config, else you can have double entries rm -f Makefile.config -echo "make upgradeconf $PARAM" > Makefile.run -. Makefile.run -rm -f Makefile.run +echo "make upgradeconf $PARAM" > ./Makefile.run +. ./Makefile.run +rm -f ./Makefile.run # Makefile.config currently doesn't support custom RELEASE (revision), so, we add the line # yourself!