mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 04:44:19 +08:00
26 lines
514 B
Bash
Executable File
26 lines
514 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 in $recipes
|
|
do
|
|
if (echo "$recipe" | grep '.*/.*' >/dev/null); then
|
|
recipe_name=$(basename "$recipe")
|
|
recipe_path="$recipe"
|
|
else
|
|
recipe_name="$recipe"
|
|
recipe_path=`target/release/find_recipe $recipe`
|
|
fi
|
|
|
|
echo -e "\033[01;38;5;215mcook - clean $recipe_name\033[0m"
|
|
rm -rf "${ROOT}/$recipe_path/target/${TARGET}"
|
|
done
|