@@ -7,12 +7,15 @@ function showhelp() {
echo "Configure for OpenTTD"
echo ""
echo "Usage:"
echo " $0 --your_options"
echo "Params:"
echo " --debug Create debug-release [no]"
echo " --profile Create profile-release [no]"
echo " --revision Set the revision of the compilation [detected]"
echo " --target-cc Sets the target-compiler [\$CC]"
echo " --target-cxx Sets the C++ target-compiler []"
echo " --host-cc Sets the host-compiler [\$CC]"
echo " --os Sets the OS. Listens to: [detected]"
echo " UNIX, OSX, FREEBSD, MORPHOS"
echo " BEOS, SUNOS, CYGWIN, MINGW"
@@ -50,12 +53,24 @@ do
case "$n" in
--help | -h)
showhelp
exit 0
;;
--debug)
PARAM="$PARAM DEBUG=1"
--profile)
PARAM="$PARAM PROFILE=1"
--revision=*)
RELEASE=`awk 'BEGIN { FS="="; $0="'$n'"; print $2;}'`
--revision)
SITEM="RELEASE"
--target-cc=*)
handle "CC_TARGET" $n
--target-cc)
ITEM="CCTARGET"
@@ -219,6 +234,13 @@ make upgradeconf $PARAM
if ! test -z "$TARGET_CXX"
then
echo "CXX=$TARGET_CXX" >> Makefile.config
fi
# Same for RELEASE (read: REVISION)
if ! test -z "$RELEASE"
echo "RELEASE=$RELEASE" >> Makefile.config
Status change: