cookutils rev 214
Tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon May 23 20:09:53 2011 +0100 (2011-05-23) |
parents | 57553966e2fb |
children | 040cd7ff487e |
files | README cook cooker |
line diff
1.1 --- a/README Mon May 23 17:43:37 2011 +0200 1.2 +++ b/README Mon May 23 20:09:53 2011 +0100 1.3 @@ -114,13 +114,13 @@ 1.4 * Cook uses gettext for messages, not the cooker 1.5 * If you add a feature, add also the doc to explain it 1.6 * Use clean case with space before case end ;; 1.7 - case "$pkg" in 1.8 + case "$pkg" in 1.9 a) echo "Hello World" ;; 1.10 *) continue ;; 1.11 - esac 1.12 - * Make commands and options as short as possible 1.13 - * Think to log everything to help debug 1.14 - * Quote variables if used in a test: [ "$var" ] 1.15 + esac 1.16 + * Make commands and options as short as possible 1.17 + * Think to log everything to help debug 1.18 + * Quote variables if used in a test: [ "$var" ] 1.19 1.20 1.21 ================================================================================
2.1 --- a/cook Mon May 23 17:43:37 2011 +0200 2.2 +++ b/cook Mon May 23 20:09:53 2011 +0100 2.3 @@ -29,25 +29,25 @@ 2.4 $(echo -e "\033[1m$(gettext "Usage:")\033[0m") cook [package|command] [list|--option] 2.5 2.6 $(echo -e "\033[1m$(gettext "Commands:")\033[0m") 2.7 - usage|help $(gettext "Display this short usage.") 2.8 - setup $(gettext "Setup your build environment.") 2.9 - test $(gettext "Test environment and cook a package.") 2.10 - list-wok $(gettext "List packages in the wok.") 2.11 - search $(gettext "Simple packages search function.") 2.12 - new $(gettext "Create a new package with a receipt".) 2.13 - list $(gettext "Cook a list of packages.") 2.14 - clean-wok $(gettext "Clean-up all packages files.") 2.15 - clean-src $(gettext "Clean-up all packages sources.") 2.16 - pkglist $(gettext "Create all packages.* lists.") 2.17 + usage|help $(gettext "Display this short usage.") 2.18 + setup $(gettext "Setup your build environment.") 2.19 + test $(gettext "Test environment and cook a package.") 2.20 + list-wok $(gettext "List packages in the wok.") 2.21 + search $(gettext "Simple packages search function.") 2.22 + new $(gettext "Create a new package with a receipt".) 2.23 + list $(gettext "Cook a list of packages.") 2.24 + clean-wok $(gettext "Clean-up all packages files.") 2.25 + clean-src $(gettext "Clean-up all packages sources.") 2.26 + pkglist $(gettext "Create all packages.* lists.") 2.27 2.28 $(echo -e "\033[1m$(gettext "Options:")\033[0m") 2.29 - --clean|-c Cook : $(gettext "clean the package in the wok.") 2.30 - --install|-i Cook : $(gettext "cook and install the package.") 2.31 - --getsrc|-gs Cook : $(gettext "get the package source tarball.") 2.32 - --block|-b Cook : $(gettext "Block a package so cook will skip it.") 2.33 - --unblock|-ub Cook : $(gettext "Unblock a blocked package.") 2.34 - --interactive Cook : $(gettext "create a receipt interactively.") 2.35 - --wok|-w Setup: $(gettext "create also a wok from Hg repo.") 2.36 + --clean|-c Cook : $(gettext "clean the package in the wok.") 2.37 + --install|-i Cook : $(gettext "cook and install the package.") 2.38 + --getsrc|-gs Cook : $(gettext "get the package source tarball.") 2.39 + --block|-b Cook : $(gettext "Block a package so cook will skip it.") 2.40 + --unblock|-ub Cook : $(gettext "Unblock a blocked package.") 2.41 + --interactive|-x Cook : $(gettext "create a receipt interactively.") 2.42 + --wok|-w Setup: $(gettext "create also a wok from Hg repo.") 2.43 2.44 EOT 2.45 exit 0 2.46 @@ -764,7 +764,7 @@ 2.47 2.48 # Interactive mode, asking and seding. 2.49 case "$3" in 2.50 - --interactive|-i) 2.51 + --interactive|-x) 2.52 gettext -e "Entering interactive mode...\n" 2.53 separator 2.54 echo "Package : $pkg"
3.1 --- a/cooker Mon May 23 17:43:37 2011 +0200 3.2 +++ b/cooker Mon May 23 20:09:53 2011 +0100 3.3 @@ -162,7 +162,7 @@ 3.4 rm -f $cookorder $cookorder.diff $cooklist.0 3.5 3.6 # Scan finished: append pkg to WANTED or leave it in the ordered cooklist. 3.7 - # TODO: grep the line number to get pkg positition and keep he higher. 3.8 + # TODO: grep the line number to get pkg position and keep it higher. 3.9 echo -e "\nHandle WANTED package" 3.10 separator 3.11 for pkg in $(cat $cooklist)