slitaz-forge rev 68
tank: Add up-hg to update mercurial style from repo
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 14 21:14:28 2011 +0200 (2011-04-14) |
parents | 30a72bea782e |
children | f6540bc2b336 |
files | tank/tank |
line diff
1.1 --- a/tank/tank Thu Apr 14 03:51:36 2011 +0000 1.2 +++ b/tank/tank Thu Apr 14 21:14:28 2011 +0200 1.3 @@ -21,6 +21,7 @@ 1.4 up-tank|-ut Update http://tank.slitaz.org/ 1.5 up-people|-up Update http://people.slitaz.org/ 1.6 up-boot|-ub Update http://boot.slitaz.org/ 1.7 + up-hg|-uh Update template for http://hg.slitaz.org/ 1.8 up-stats|-us Update Awstats statistics (run by cron) 1.9 adduser|-au Add user on tank\n" 1.10 } 1.11 @@ -86,11 +87,10 @@ 1.12 Usage: $0 $1 newchroot user 1.13 Move a user in a new chroot location 1.14 EOF 1.15 - fi 1.16 - ;; 1.17 + fi ;; 1.18 backup|-b) 1.19 # Backup config files and SQL db. 1.20 - echo "Not yet implemented..." ;; 1.21 + echo "TODO" ;; 1.22 up-www|-uw) 1.23 # Update website from repo. 1.24 echo -e "\nUpdating: www.slitaz.org..." 1.25 @@ -120,6 +120,16 @@ 1.26 rm -rf $WWW/boot/* 1.27 cp -a boot/* $WWW/boot 1.28 echo "" ;; 1.29 + up-hg|-uh) 1.30 + # Since Tank run stable and we update the style in slitaz-dev-tools 1.31 + # the cooking package is unbuildable because it use new Tazwok function 1.32 + # with mercurial|* 1.33 + PYTHON_LIB="/usr/lib/python2.5" 1.34 + echo -e "\nUpdating Mercurial style..." 1.35 + cd $REPOS/slitaz-dev-tools && hg up 1.36 + cp -a slitaz-mercurial-style/* $PYTHON_LIB/site-packages/mercurial 1.37 + chown -R root.root $PYTHON_LIB/site-packages/mercurial/templates 1.38 + echo "" ;; 1.39 up-stats|-us) 1.40 echo -e "\nUpdating all awstats databases..." 1.41 for vh in www boot pkgs