wok-current rev 3441

slitaz-dev-tools: add command update-www (up slitaz website repo)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jun 14 02:45:16 2009 +0200 (2009-06-14)
parents 7b0f14e1c0ac
children e43fb2292deb
files slitaz-dev-tools/stuff/tazdev slitaz-dev-tools/stuff/tazdev.conf
line diff
     1.1 --- a/slitaz-dev-tools/stuff/tazdev	Sun Jun 14 02:26:59 2009 +0200
     1.2 +++ b/slitaz-dev-tools/stuff/tazdev	Sun Jun 14 02:45:16 2009 +0200
     1.3 @@ -21,14 +21,15 @@
     1.4  	echo -e "\nSliTaz developers and build host tool\n
     1.5  \033[1mUsage: \033[0m `basename $0` [command] [user] [stable|cooking]
     1.6  \033[1mCommands: \033[0m\n
     1.7 -  usage      Print this short usage and command list.
     1.8 -  cmplog     Log 'tazwok cmp' result.
     1.9 -  update-wok Update Hg wok and copy it to the chroot wok.
    1.10 -  chroot     Mount virtual fs if needed and chroot into the build env.
    1.11 -  push       Upload new packages to the mirror.
    1.12 -  dry-push   Show what will be uploaded to the mirror. Do nothing.
    1.13 -  pull       Download new packages from the mirror.
    1.14 -  dry-pull   Show what will be downloaded from the mirror. Do nothing.\n"
    1.15 +  usage        Print this short usage and command list.
    1.16 +  cmplog       Log 'tazwok cmp' result.
    1.17 +  update-wok   Update Hg wok and copy it to the chroot wok.
    1.18 +  update-wwww  Update SliTaz Website repo.
    1.19 +  chroot       Mount virtual fs if needed and chroot into the build env.
    1.20 +  push         Upload new packages to the mirror.
    1.21 +  dry-push     Show what will be uploaded to the mirror. Do nothing.
    1.22 +  pull         Download new packages from the mirror.
    1.23 +  dry-pull     Show what will be downloaded from the mirror. Do nothing.\n"
    1.24  }
    1.25  
    1.26  # Exit if user is not root.
    1.27 @@ -81,6 +82,11 @@
    1.28  		echo -n "Copying Hg wok to the chroot... "
    1.29  		cp -a $HG_WOK $CHROOT_WOK
    1.30  		echo "Done" ;;
    1.31 +	update-www)
    1.32 +		# Update website from repo.
    1.33 +		echo ""
    1.34 +		cd $WEBSITE && hg pull && hg update
    1.35 +		echo "" ;;
    1.36  	chroot)
    1.37  		# Chroot into a build env. Default to cookind configured in 
    1.38  		# tazdev.conf
     2.1 --- a/slitaz-dev-tools/stuff/tazdev.conf	Sun Jun 14 02:26:59 2009 +0200
     2.2 +++ b/slitaz-dev-tools/stuff/tazdev.conf	Sun Jun 14 02:45:16 2009 +0200
     2.3 @@ -8,6 +8,9 @@
     2.4  COOKING="/home/slitaz/cooking"
     2.5  STABLE="/home/slitaz/stable"
     2.6  
     2.7 +# Path to the Website repo
     2.8 +WEBSITE="/home/slitaz/www/website"
     2.9 +
    2.10  # Main mirror settings.
    2.11  MIRROR="mirror.slitaz.org"
    2.12  MIRROR_DIR="/var/www/slitaz/mirror/packages"