Author: esr
Date: Fri Apr 4 01:03:37 2008
New Revision: 25523
URL: http://svn.gna.org/viewcvs/wesnoth?rev=25523&view=rev
Log:
Deleted in error. Here is the history:
------------------------------------------------------------------------
r25245 | soliton | 2008-03-28 11:27:38 -0400 (Fri, 28 Mar 2008) | 2 lines
* exit before deletion if the unit tree script fails
------------------------------------------------------------------------
r25208 | soliton | 2008-03-27 17:01:28 -0400 (Thu, 27 Mar 2008) | 2 lines
* first generate the new files and then delete the old and move
------------------------------------------------------------------------
r24581 | soliton | 2008-03-12 15:13:05 -0400 (Wed, 12 Mar 2008) | 3 lines
* change the order of the unit tree links now the most recent versions are at
the top
* allow continued updating of stable versions where we don't care about the sub
version number
------------------------------------------------------------------------
r24575 | soliton | 2008-03-12 13:35:56 -0400 (Wed, 12 Mar 2008) | 2 lines
* comment the svn update and svn status calls since they are not needed and too
expensive on the new host
------------------------------------------------------------------------
r24567 | soliton | 2008-03-12 10:59:59 -0400 (Wed, 12 Mar 2008) | 2 lines
* move the update_unit_tree script to a better location since it is not
primarily used on server.wesnoth.org anymore
------------------------------------------------------------------------
r24566 | soliton | 2008-03-12 10:56:29 -0400 (Wed, 12 Mar 2008) | 2 lines
* tweak the site path to be more generic
------------------------------------------------------------------------
r24254 | soliton | 2008-03-03 00:12:32 -0500 (Mon, 03 Mar 2008) | 2 lines
* update to handle version 1.4
------------------------------------------------------------------------
r23277 | soliton | 2008-01-27 17:31:23 -0500 (Sun, 27 Jan 2008) | 2 lines
* make a complete svn update rather
------------------------------------------------------------------------
r22313 | soliton | 2007-12-12 10:45:54 -0500 (Wed, 12 Dec 2007) | 2 lines
* typo fix
------------------------------------------------------------------------
r22312 | soliton | 2007-12-12 10:27:34 -0500 (Wed, 12 Dec 2007) | 3 lines
* add a proper doctype and put the meta tag at the correct place
* fix line endings
------------------------------------------------------------------------
r22150 | soliton | 2007-12-05 15:11:13 -0500 (Wed, 05 Dec 2007) | 2 lines
* improve the version handling
------------------------------------------------------------------------
r22053 | soliton | 2007-11-30 09:00:42 -0500 (Fri, 30 Nov 2007) | 2 lines
* add a script to update the unit tree on new releases; putting it here since
it's configured to be run on server.wesnoth.org
------------------------------------------------------------------------
Added:
trunk/utils/update_unit_tree (with props)
Added: trunk/utils/update_unit_tree
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/update_unit_tree?rev=25523&view=auto
==============================================================================
--- trunk/utils/update_unit_tree (added)
+++ trunk/utils/update_unit_tree Fri Apr 4 01:03:37 2008
@@ -1,0 +1,53 @@
+#!/bin/sh
+
+if [ $# -ne 1 ]; then
+ echo "Syntax: $0 <wesnoth version>"
+ exit 1
+fi
+
+VERSION=$1
+SITE=$HOME/html/units
+SOURCE=$HOME/source
+
+if ! [ -d $SOURCE ]; then
+ echo "'$SOURCE' not found."
+ exit 1
+fi
+
+BRANCH=Development
+case $VERSION in
+ 1.2 ) cd $SOURCE/1.2 || exit 1
+ BRANCH=Stable
+ ;;
+ 1.3.* ) cd $SOURCE/trunk || exit 1
+ ;;
+ 1.4 ) cd $SOURCE/1.4 || exit 1
+ BRANCH=Stable
+ ;;
+ trunk ) cd $SOURCE/trunk || exit 1
+ ;;
+ * ) echo "Unknown version."
+ exit 1
+ ;;
+esac
+if [ -d $SITE/$VERSION ] && [ "$BRANCH" != "Stable" ] && [ "$VERSION" !=
"trunk" ]; then
+ echo "'$SITE/$VERSION' already exists."
+ exit 1
+fi
+#echo 'svn update...'
+#svn update
+#svn status
+cd data/tools/unit_tree/ || exit 1
+if [ "$VERSION" != "trunk" ]; then
+ # insert a link for the new version
+ sed -i -e "s,\(<p><a
href=\"trunk/index.html\">Trunk</a></p>\),\1\n<p><a
href=\"$VERSION/index.html\">$VERSION ($BRANCH)</a></p>," $SITE/index.html
+ # make sure we update with the right version
+ sed -i -e "s/\(my \$version = '\).*\(';\)/\1$VERSION\2/" units.pl
+fi
+./units.pl || exit 1
+rm -rf $SITE/$VERSION
+# move the generated files to their proper place
+mv files $SITE/$VERSION
+cp -p templates/units.css $SITE/$VERSION
+# revert to prevent future conflicts if $version changed
+svn revert units.pl
Propchange: trunk/utils/update_unit_tree
------------------------------------------------------------------------------
svn:executable = *
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits