# HG changeset patch # User Christophe Lincoln # Date 1304544962 -7200 # Node ID 97ff632519573d4b9848c24b1df47762e0aff02e # Parent 92e7565b2519504904f5ad9c052bf204989a353c cooker: Add option --pkg= so cooker can be used the same way as cook diff -r 92e7565b2519 -r 97ff63251957 cooker --- a/cooker Wed May 04 23:23:51 2011 +0200 +++ b/cooker Wed May 04 23:36:02 2011 +0200 @@ -32,10 +32,11 @@ Usage: cooker [--option] Options: - --usage Display this short usage. - --setup Setup the Cooker environment. - --all Cook all unbuilt packages. - --cat= Cook all package of a category. + --usage Display this short usage. + --setup Setup the Cooker environment. + --pkg= Same as 'cook pkg' but with cooker log. + --cat= Cook all package of a category. + --all Find and cook all unbuilt packages. EOT exit 0 @@ -205,6 +206,11 @@ echo "TODO: $rev" fi done ;; + --pkg=*) + # Same as 'cook pkg' but with log for web interface. + pkg=${1#--pkg=} + echo "cook started for: $pkg" | log + cook $pkg || broken ;; --cat=*) # Cook all packages of a category. rm -f $cooklist && touch $cooklist