mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 22:34:18 +08:00
Cook with more than one argument
Add orbutils and userutils
This commit is contained in:
parent
98ad816e11
commit
47034cf00e
55
cook.sh
55
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"
|
||||
|
||||
1
recipes/orbutils/recipe.sh
Normal file
1
recipes/orbutils/recipe.sh
Normal file
@ -0,0 +1 @@
|
||||
GIT=https://github.com/redox-os/orbutils.git
|
||||
1
recipes/userutils/recipe.sh
Normal file
1
recipes/userutils/recipe.sh
Normal file
@ -0,0 +1 @@
|
||||
GIT=https://github.com/redox-os/userutils.git
|
||||
Loading…
Reference in New Issue
Block a user