Cook with more than one argument

Add orbutils and userutils
This commit is contained in:
Jeremy Soller 2016-10-31 13:35:45 -06:00
parent 98ad816e11
commit 47034cf00e
3 changed files with 31 additions and 26 deletions

55
cook.sh
View File

@ -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"

View File

@ -0,0 +1 @@
GIT=https://github.com/redox-os/orbutils.git

View File

@ -0,0 +1 @@
GIT=https://github.com/redox-os/userutils.git