mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-20 03:44:18 +08:00
22 lines
333 B
Bash
Executable File
22 lines
333 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
source config.sh
|
|
|
|
if [ $# = 0 ]
|
|
then
|
|
recipes="$(target/release/list_recipes)"
|
|
else
|
|
recipes="$@"
|
|
fi
|
|
|
|
for recipe_path in $recipes
|
|
do
|
|
if [ -e "$recipe_path/recipe.toml" ]
|
|
then
|
|
target/release/cook --fetch-only "$recipe_path"
|
|
else
|
|
./cook.sh "$recipe_path" fetch
|
|
fi
|
|
done
|