slitaz-dev-tools rev 210
tazdev: add cmd up-repos|-upr to update all repos at once
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 02 14:38:56 2014 +0100 (2014-01-02) |
parents | 58d04aa5882e |
children | 4edf04502db1 |
files | tazdev/tazdev |
line diff
1.1 --- a/tazdev/tazdev Thu Jan 02 14:31:28 2014 +0100 1.2 +++ b/tazdev/tazdev Thu Jan 02 14:38:56 2014 +0100 1.3 @@ -13,7 +13,7 @@ 1.4 # Eric Joseph-Alexandre <erjo@slitaz.org> 1.5 # 1.6 1.7 -VERSION=1.9 1.8 +VERSION=2.0 1.9 1.10 . /lib/libtaz.sh 1.11 1.12 @@ -34,7 +34,7 @@ 1.13 $(boldify "Commands:") 1.14 usage Print this short usage and command list 1.15 help Give help on a SliTaz tool or library. 1.16 - stats|-s Display statistics about your projects 1.17 + stats|-s Display statistics about your projects 1.18 chroot|-c Mount virtual fs and chroot into the build env 1.19 gen-chroot|-gc Generate a chroot using packages from config file 1.20 umount-chroot|-uc Unmount chroot specified on cmdline 1.21 @@ -43,6 +43,7 @@ 1.22 dry-push|-dp Show what will be uploaded to the mirror. Does nothing 1.23 pull Download new packages from the main mirror 1.24 dry-pull Show what will be downloaded from the mirror. Does nothing 1.25 + up-repos|-upr Update all your SliTaz projects repos in one command. 1.26 relpkg|-rp Archive and upload new package/project version 1.27 1.28 $(boldify "Options:") 1.29 @@ -300,6 +301,19 @@ 1.30 check_mirror $@ 1.31 rsync -r -t -l -v -z --delete --dry-run \ 1.32 -e ssh $user@$MIRROR:$remote $local ;; 1.33 + up-repos|-upr) 1.34 + # Update all at once. 1.35 + newline 1.36 + boldify "Update all SliTaz Hg repos" 1.37 + separator 1.38 + for p in $(ls $PROJECTS) 1.39 + do 1.40 + echo -n $(boldify Project:) && colorize 36 " $p" 1.41 + cd ${PROJECTS}/${p} 1.42 + hg pull -u 1.43 + done 1.44 + separator 1.45 + newline ;; 1.46 relpkg|-rp) 1.47 # Release a slitaz sub-project and upload tarball to mirror 1.48 [ -z "$MIRROR_SOURCES" ] && MIRROR_SOURCES="/var/www/slitaz/mirror/sources"