mail[Wesnoth-commits] r34203 - /trunk/utils/mp-server/update_server


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by soliton . de on March 28, 2009 - 07:58:
Author: soliton
Date: Sat Mar 28 07:58:16 2009
New Revision: 34203

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34203&view=rev
Log:
set build flags based on hostname

Modified:
    trunk/utils/mp-server/update_server

Modified: trunk/utils/mp-server/update_server
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/update_server?rev=34203&r1=34202&r2=34203&view=diff
==============================================================================
--- trunk/utils/mp-server/update_server (original)
+++ trunk/utils/mp-server/update_server Sat Mar 28 07:58:16 2009
@@ -32,9 +32,7 @@
        echo "$SOURCE not found." >&2
        exit 1
 fi
-# only really needed on server.wesnoth.org
-#CXXFLAGS="$CXXFLAGS -I$HOME/tools/include"
-#LDFLAGS="$LDFLAGS -L$HOME/tools/lib"
+
 case $SERVER in
        1.2 )   cd $SOURCE/1.2   || exit 1
                CXXFLAGS="$CXXFLAGS -ggdb3"
@@ -84,11 +82,18 @@
 if [ "$SCONS" = "yes" ]; then
        if [ $TYPE = wesnothd ]; then
                BUILD_FLAGS="fifodir=$BUILD/var/run raw_sockets=1 
forum_user_handler=1"
+               case $(hostname) in
+                       gonzo.dicp.de)
+                               BUILD_FLAGS="fifodir=$BUILD/var/run 
raw_sockets=1 boostdir=$HOME/tools/include boostlibdir=$HOME/tools/lib 
boost_suffix=-mt"
+                               ;;
+                       basilic)
+                               BUILD_FLAGS="fifodir=$BUILD/var/run 
raw_sockets=1"
+                               ;;
+               esac
        fi
        mkdir -p $BUILD/var/run
        # need to remove .scons-option-cache when parameters get removed!
        CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" scons install-$TYPE 
prefix=$BUILD program_suffix=-$SERVER $BUILD_FLAGS profile=0 fribidi=0 
python=0 localedir= prefsdir= > $BUILD/scons.log || exit 1
-#      boostdir=$HOME/tools/include boostlibdir=$HOME/tools/lib 
boost_suffix=-mt
 else
        if [ $TYPE = wesnothd ]; then
                BUILD_FLAGS="--enable-server --enable-raw-sockets 
--with-fifodir=$BUILD/var/run"




Related Messages


Powered by MHonArc, Updated Sat Mar 28 08:00:41 2009