# HG changeset patch # User Christophe Lincoln # Date 1244940316 -7200 # Node ID 79acaf03301f37109218d23572a0532ad4caf451 # Parent 7b0f14e1c0ac195631de444db2b7022ba619896a slitaz-dev-tools: add command update-www (up slitaz website repo) diff -r 7b0f14e1c0ac -r 79acaf03301f slitaz-dev-tools/stuff/tazdev --- a/slitaz-dev-tools/stuff/tazdev Sun Jun 14 02:26:59 2009 +0200 +++ b/slitaz-dev-tools/stuff/tazdev Sun Jun 14 02:45:16 2009 +0200 @@ -21,14 +21,15 @@ echo -e "\nSliTaz developers and build host tool\n \033[1mUsage: \033[0m `basename $0` [command] [user] [stable|cooking] \033[1mCommands: \033[0m\n - usage Print this short usage and command list. - cmplog Log 'tazwok cmp' result. - update-wok Update Hg wok and copy it to the chroot wok. - chroot Mount virtual fs if needed and chroot into the build env. - push Upload new packages to the mirror. - dry-push Show what will be uploaded to the mirror. Do nothing. - pull Download new packages from the mirror. - dry-pull Show what will be downloaded from the mirror. Do nothing.\n" + usage Print this short usage and command list. + cmplog Log 'tazwok cmp' result. + update-wok Update Hg wok and copy it to the chroot wok. + update-wwww Update SliTaz Website repo. + chroot Mount virtual fs if needed and chroot into the build env. + push Upload new packages to the mirror. + dry-push Show what will be uploaded to the mirror. Do nothing. + pull Download new packages from the mirror. + dry-pull Show what will be downloaded from the mirror. Do nothing.\n" } # Exit if user is not root. @@ -81,6 +82,11 @@ echo -n "Copying Hg wok to the chroot... " cp -a $HG_WOK $CHROOT_WOK echo "Done" ;; + update-www) + # Update website from repo. + echo "" + cd $WEBSITE && hg pull && hg update + echo "" ;; chroot) # Chroot into a build env. Default to cookind configured in # tazdev.conf diff -r 7b0f14e1c0ac -r 79acaf03301f slitaz-dev-tools/stuff/tazdev.conf --- a/slitaz-dev-tools/stuff/tazdev.conf Sun Jun 14 02:26:59 2009 +0200 +++ b/slitaz-dev-tools/stuff/tazdev.conf Sun Jun 14 02:45:16 2009 +0200 @@ -8,6 +8,9 @@ COOKING="/home/slitaz/cooking" STABLE="/home/slitaz/stable" +# Path to the Website repo +WEBSITE="/home/slitaz/www/website" + # Main mirror settings. MIRROR="mirror.slitaz.org" MIRROR_DIR="/var/www/slitaz/mirror/packages"