mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r7893) [0.5] -Fix (FS#485): the configure script did not work work for dash, a sh compatible shell.
This commit is contained in:
parent
f5439821c1
commit
0b7ab719f3
|
@ -3,7 +3,7 @@
|
||||||
# This 'configure' script is a very easy wrapper around 'make updateconf'
|
# This 'configure' script is a very easy wrapper around 'make updateconf'
|
||||||
# It allows cross-compilers to do their job much more easy.
|
# It allows cross-compilers to do their job much more easy.
|
||||||
|
|
||||||
function showhelp() {
|
showhelp() {
|
||||||
echo "Configure for OpenTTD"
|
echo "Configure for OpenTTD"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
|
@ -48,7 +48,7 @@ function showhelp() {
|
||||||
echo " "
|
echo " "
|
||||||
}
|
}
|
||||||
|
|
||||||
function handle() {
|
handle() {
|
||||||
PARAM="$PARAM \"$1=`awk 'BEGIN { FS="="; $0="'"$2"'"; print $2;}'`\""
|
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
|
# First remove the Makefile.config, else you can have double entries
|
||||||
rm -f Makefile.config
|
rm -f Makefile.config
|
||||||
|
|
||||||
echo "make upgradeconf $PARAM" > Makefile.run
|
echo "make upgradeconf $PARAM" > ./Makefile.run
|
||||||
. Makefile.run
|
. ./Makefile.run
|
||||||
rm -f Makefile.run
|
rm -f ./Makefile.run
|
||||||
|
|
||||||
# Makefile.config currently doesn't support custom RELEASE (revision), so, we add the line
|
# Makefile.config currently doesn't support custom RELEASE (revision), so, we add the line
|
||||||
# yourself!
|
# yourself!
|
||||||
|
|
Loading…
Reference in New Issue