wok-next rev 2571
mirror-tools/mkpkgiso: allow multiple options
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 30 17:09:03 2009 +0000 (2009-03-30) |
parents | 7a3ed9be8ba6 |
children | bdb95cc04462 |
files | mirror-tools/stuff/usr/bin/mkpkgiso |
line diff
1.1 --- a/mirror-tools/stuff/usr/bin/mkpkgiso Mon Mar 30 17:02:26 2009 +0000 1.2 +++ b/mirror-tools/stuff/usr/bin/mkpkgiso Mon Mar 30 17:09:03 2009 +0000 1.3 @@ -128,12 +128,13 @@ 1.4 echo "$(du -hs $TEMP_DIR/$1 | awk '{ print $1 }') used by $2." 1.5 } 1.6 1.7 -case " $OPTIONS " in 1.8 -*\ --wok\ *) 1.9 +for i in $OPTIONS ; do 1.10 +case "$i" in 1.11 +--wok) 1.12 get_from_hg wok "wok (cooking)";; 1.13 -*\ --wok-stable\ *) 1.14 +--wok-stable) 1.15 get_from_hg wok-stable "wok (stable)";; 1.16 -*\ --website\ *) 1.17 +--website) 1.18 if get_from_hg website "web site"; then 1.19 cat >>$TEMP_DIR/install.sh<<EOF 1.20 echo "Install http://127.0.0.1/website ..." 1.21 @@ -143,6 +144,7 @@ 1.22 EOF 1.23 fi;; 1.24 esac 1.25 +done 1.26 1.27 # Extract boot package function 1.28 extract_boot()