diff --git a/cook.sh b/cook.sh index a1c6ba80150a4a19766457797e3685d935a8d370..652a016c96ffd704313cc5cd35953d2d9655ae8a 100755 --- a/cook.sh +++ b/cook.sh @@ -13,32 +13,35 @@ then then pushd "recipes/$1" source recipe.sh - case "$2" in - build) - pushd build - xargo build --target "$TARGET" $CARGOFLAGS - popd - ;; - clean) - pushd build - xargo clean - popd - ;; - fetch) - git clone --recursive "$GIT" build - ;; - unfetch) - rm -rf build - ;; - update) - pushd build - xargo update - popd - ;; - *) - echo "$0 {package} {build|clean|fetch|update}" - ;; - esac + for arg in "${@:2}" + do + case "$arg" in + build) + pushd build + xargo build --target "$TARGET" $CARGOFLAGS + popd + ;; + clean) + pushd build + xargo clean + popd + ;; + fetch) + git clone --recursive "$GIT" build + ;; + unfetch) + rm -rf build + ;; + update) + pushd build + xargo update + popd + ;; + *) + echo "$0 {package} {build|clean|fetch|update}" + ;; + esac + done popd else echo "$0: recipe '$1' not found" diff --git a/recipes/orbutils/recipe.sh b/recipes/orbutils/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..7324ebb55d1b11daa59b4349f605af4959ea026b --- /dev/null +++ b/recipes/orbutils/recipe.sh @@ -0,0 +1 @@ +GIT=https://github.com/redox-os/orbutils.git diff --git a/recipes/userutils/recipe.sh b/recipes/userutils/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..92d104f7bcfc0d0d88339042cfa4934eb9622c5e --- /dev/null +++ b/recipes/userutils/recipe.sh @@ -0,0 +1 @@ +GIT=https://github.com/redox-os/userutils.git