slitaz-forge rev 69
tank: Add up-doc to update wiki template
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 14 21:21:58 2011 +0200 (2011-04-14) |
parents | 3a19ffbd6775 |
children | ed64984a8f9a |
files | tank/tank |
line diff
1.1 --- a/tank/tank Thu Apr 14 21:14:28 2011 +0200 1.2 +++ b/tank/tank Thu Apr 14 21:21:58 2011 +0200 1.3 @@ -10,6 +10,8 @@ 1.4 VHOST="$WWW/tank" 1.5 WEBSITE="$WWW/website" 1.6 BACKUPS="/home/backups" 1.7 +PYTHON_LIB="/usr/lib/python2.5" 1.8 +DOC_LIB="$WWW/doc/lib" 1.9 1.10 usage() { 1.11 echo -e "\nUsage: `basename $0` [command] 1.12 @@ -22,6 +24,7 @@ 1.13 up-people|-up Update http://people.slitaz.org/ 1.14 up-boot|-ub Update http://boot.slitaz.org/ 1.15 up-hg|-uh Update template for http://hg.slitaz.org/ 1.16 + up-doc|-ud Update template for http://doc.slitaz.org/ 1.17 up-stats|-us Update Awstats statistics (run by cron) 1.18 adduser|-au Add user on tank\n" 1.19 } 1.20 @@ -124,12 +127,17 @@ 1.21 # Since Tank run stable and we update the style in slitaz-dev-tools 1.22 # the cooking package is unbuildable because it use new Tazwok function 1.23 # with mercurial|* 1.24 - PYTHON_LIB="/usr/lib/python2.5" 1.25 - echo -e "\nUpdating Mercurial style..." 1.26 + echo -e "\nUpdating Mercurial template..." 1.27 cd $REPOS/slitaz-dev-tools && hg up 1.28 cp -a slitaz-mercurial-style/* $PYTHON_LIB/site-packages/mercurial 1.29 chown -R root.root $PYTHON_LIB/site-packages/mercurial/templates 1.30 echo "" ;; 1.31 + up-hg|-uh) 1.32 + # Update Wiki doc template from Hg: http://doc.slitaz.org/ 1.33 + echo -e "\nUpdating Wiki documentation template..." 1.34 + cd $REPOS/slitaz-forge && hg up 1.35 + cp -a doc/lib/tpl/* $DOC_LIB/tpl 1.36 + echo "" ;; 1.37 up-stats|-us) 1.38 echo -e "\nUpdating all awstats databases..." 1.39 for vh in www boot pkgs