From 47034cf00e9f74cca081ae15b3eac11d4596fc6b Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Mon, 31 Oct 2016 13:35:45 -0600 Subject: [PATCH] Cook with more than one argument Add orbutils and userutils --- cook.sh | 55 +++++++++++++++++++------------------ recipes/orbutils/recipe.sh | 1 + recipes/userutils/recipe.sh | 1 + 3 files changed, 31 insertions(+), 26 deletions(-) create mode 100644 recipes/orbutils/recipe.sh create mode 100644 recipes/userutils/recipe.sh diff --git a/cook.sh b/cook.sh index a1c6ba801..652a016c9 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 000000000..7324ebb55 --- /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 000000000..92d104f7b --- /dev/null +++ b/recipes/userutils/recipe.sh @@ -0,0 +1 @@ +GIT=https://github.com/redox-os/userutils.git -- GitLab