Author: esr
Date: Fri Apr  4 00:37:21 2008
New Revision: 25519

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25519&view=rev
Log:
Obsoleted by the Perl unit_tree script;
soon to be double-obsoleted by a Python rewrite of same. 

Removed:
    trunk/utils/update_unit_tree

Removed: trunk/utils/update_unit_tree
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/update_unit_tree?rev=25518&view=auto
==============================================================================
--- trunk/utils/update_unit_tree (original)
+++ trunk/utils/update_unit_tree (removed)
@@ -1,53 +1,0 @@
-#!/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


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to