Author: soliton
Date: Sun Apr 27 03:08:49 2008
New Revision: 26150
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26150&view=rev
Log:
go back to using sed to find the build dir, seems more reliable after all
Modified:
trunk/utils/mp-server/run_server
Modified: trunk/utils/mp-server/run_server
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/run_server?rev=26150&r1=26149&r2=26150&view=diff
==============================================================================
--- trunk/utils/mp-server/run_server (original)
+++ trunk/utils/mp-server/run_server Sun Apr 27 03:08:49 2008
@@ -49,7 +49,7 @@
fi
DATE=$(date +"%Y%m%d-%H%M%S")
PORT=$(sed -re '/port=/!d;s/[ \t]*port="?([0-9]+)"?/\1/'
$SERVERBASE/redirect.cfg)
- BUILDDIR=$(ls -l $SERVERBASE/build | cut -d ' ' -f 12)
+ BUILDDIR=$(ls -l $SERVERBASE/build | sed -e
's,.*\(\.\./builds/wesnothd-.*/\),\1,')
REV=r$(echo "$BUILDDIR" | sed -re
"s,.*wesnothd-svn-([0-9:SM]+)_$SERVER/$,\1,")
LOG=wesnothd.$DATE.$REV.log
COMMAND="bin/wesnothd-$SERVER -c $SERVERBASE/wesnothd.cfg
--port $PORT --threads $THREADS $PARAMETERS"
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits