cookutils rev 230

cook: let setup a stable or undigest repo (no more exit since Hg with abort if wok not empty)
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 05:07:55 2011 +0200 (2011-05-27)
parents 939e2a27ddd3
children ded5e8ac4850
files cook
line diff
     1.1 --- a/cook	Fri May 27 02:20:23 2011 +0200
     1.2 +++ b/cook	Fri May 27 05:07:55 2011 +0200
     1.3 @@ -46,8 +46,10 @@
     1.4    --getsrc|-gs       Cook : $(gettext "get the package source tarball.")
     1.5    --block|-b         Cook : $(gettext "Block a package so cook will skip it.")
     1.6    --unblock|-ub      Cook : $(gettext "Unblock a blocked package.")
     1.7 -  --interactive|-x   Cook : $(gettext "create a receipt interactively.")
     1.8 -  --wok|-w           Setup: $(gettext "create also a wok from Hg repo.")
     1.9 +  --interactive|-x   New  : $(gettext "create a receipt interactively.")
    1.10 +  --wok|-w           Setup: $(gettext "clone the cooking wok from Hg repo.")
    1.11 +  --stable           Setup: $(gettext "clone the stable wok from Hg repo.")
    1.12 +  --undigest         Setup: $(gettext "clone the undigest wok from Hg repo.")
    1.13  
    1.14  EOT
    1.15  	exit 0
    1.16 @@ -749,10 +751,11 @@
    1.17  		# Handle --options
    1.18  		case "$2" in
    1.19  			--wok|-w)
    1.20 -				[ ! -f "$INSTALLED/mercurial/receipt" ] && \
    1.21 -					tazpkg get-install mercurial
    1.22 -				[ -d "$WOK" ] && echo -e "A wok already exists.\n" && exit 1
    1.23 -				hg clone $WOK_URL ;;
    1.24 +				hg clone $WOK_URL wok || exit 1 ;;
    1.25 +			--stable)
    1.26 +				hg clone $WOK_URL-stable wok || exit 1 ;;
    1.27 +			--undigest)
    1.28 +				hg clone $WOK_URL-undigest wok || exit 1 ;;
    1.29  		esac
    1.30  
    1.31  		# SliTaz group and permissions