(svn r7893) [0.5] -Fix (FS#485): the configure script did not work work for dash, a sh compatible shell. 0.5
authorrubidium
Fri, 05 Jan 2007 23:43:20 +0000
branch0.5
changeset 5386 57c38a03a0da
parent 5385 1dfe1c4bce46
child 5387 3047d553859c
(svn r7893) [0.5] -Fix (FS#485): the configure script did not work work for dash, a sh compatible shell.
configure
--- a/configure	Sun Dec 31 11:28:42 2006 +0000
+++ b/configure	Fri Jan 05 23:43:20 2007 +0000
@@ -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 @@
 	echo " "
 }
 
-function handle() {
+handle() {
 	PARAM="$PARAM \"$1=`awk 'BEGIN { FS="="; $0="'"$2"'"; print $2;}'`\""
 }
 
@@ -309,9 +309,9 @@
 # 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!