mail[Wesnoth-commits] r24255 - /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 03, 2008 - 06:23:
Author: soliton
Date: Mon Mar  3 06:23:24 2008
New Revision: 24255

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24255&view=rev
Log:
* update to handle version 1.4

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=24255&r1=24254&r2=24255&view=diff
==============================================================================
--- trunk/utils/mp-server/update_server (original)
+++ trunk/utils/mp-server/update_server Mon Mar  3 06:23:24 2008
@@ -9,8 +9,6 @@
 SERVERBASE=$HOME/servers/$SERVER
 BUILD=$HOME/servers/builds
 SOURCE=$HOME/source
-TRUNK=$SOURCE/trunk/
-STABLE=$SOURCE/1.2/
 SOCKET=$SERVERBASE/build/var/run/socket
 
 if ! [ -d $SERVERBASE ]; then
@@ -23,11 +21,14 @@
        exit 1
 fi
 
-if [ "$SERVER" = "1.2" ]; then
-       cd $STABLE || exit 1
-else
-       cd $TRUNK  || exit 1
-fi
+case $SERVER in
+       1.2 )   cd $SOURCE/1.2   || exit 1
+       ;;
+       1.4 )   cd $SOURCE/1.4   || exit 1
+       ;;
+       *   )   cd $SOURCE/trunk || exit 1
+       ;;
+esac
 
 REVISION=""
 if [ "$2" != "" ]; then




Related Messages


Powered by MHonArc, Updated Mon Mar 03 06:41:10 2008