mail[Wesnoth-commits] r24581 - /trunk/utils/update_unit_tree


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

Header


Content

Posted by soliton . de on March 12, 2008 - 20:29:
Author: soliton
Date: Wed Mar 12 20:13:05 2008
New Revision: 24581

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24581&view=rev
Log:
* 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

Modified:
    trunk/utils/update_unit_tree

Modified: trunk/utils/update_unit_tree
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/update_unit_tree?rev=24581&r1=24580&r2=24581&view=diff
==============================================================================
--- trunk/utils/update_unit_tree (original)
+++ trunk/utils/update_unit_tree Wed Mar 12 20:13:05 2008
@@ -18,11 +18,13 @@
 case $VERSION in
        1.2 )   cd $SOURCE/1.2 || exit 1
                BRANCH=Stable
+               rm -rf $SITE/$VERSION
        ;;
        1.3.* ) cd $SOURCE/trunk || exit 1
        ;;
        1.4 )   cd $SOURCE/1.4 || exit 1
                BRANCH=Stable
+               rm -rf $SITE/$VERSION
        ;;
        trunk ) cd $SOURCE/trunk || exit 1
                rm -rf $SITE/$VERSION
@@ -41,7 +43,7 @@
 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>\),<p><a 
href=\"$VERSION/index.html\">$VERSION ($BRANCH)</a></p>\n\1," $SITE/index.html
+       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




Related Messages


Powered by MHonArc, Updated Wed Mar 12 20:42:21 2008