tazwok rev 106

Add command 'hgup' to pull/update a wok under Hg
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jan 17 23:48:00 2009 +0100 (2009-01-17)
parents 4e05e33a12cf
children 5c096869a0bb
files tazwok
line diff
     1.1 --- a/tazwok	Mon Jan 05 04:53:06 2009 +0100
     1.2 +++ b/tazwok	Sat Jan 17 23:48:00 2009 +0100
     1.3 @@ -6,7 +6,7 @@
     1.4  # packages or a list of packages with one command, rebuild the full distro,
     1.5  # generate a packages repository and also list and get info about packages.
     1.6  #
     1.7 -# (C) 2007-2008 SliTaz - GNU General Public License.
     1.8 +# (C) 2007-2009 SliTaz - GNU General Public License.
     1.9  #
    1.10  VERSION=2.1
    1.11  
    1.12 @@ -1206,6 +1206,13 @@
    1.13  			echo ""
    1.14  		fi
    1.15  		;;
    1.16 +	hgup)
    1.17 +		# Pull and update an Hg wok.
    1.18 +		if ls -l $WOK/.hg/hgrc | grep -q "root"; then
    1.19 +			check_root
    1.20 +		fi
    1.21 +		cd $WOK
    1.22 +		hg pull && hg update ;;
    1.23  	usage|*)
    1.24  		# Print usage also for all unknown commands.
    1.25  		#