add nonstop, uc and ucf to build, plus scripts include-recipes.sh and show-package.sh
This commit is contained in:
parent
dc4f61cc8e
commit
6258becc3c
1 changed files with 61 additions and 1 deletions
23
scripts/include-recipes.sh
Executable file
23
scripts/include-recipes.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Given a string, find recipe.toml files containing that string.
|
||||
# Create a list that can be copy/pasted into a filesystem config.
|
||||
|
||||
if [ -z "$*" ]
|
||||
then
|
||||
echo "Find matching recipes, and format for inclusion in config"
|
||||
echo "Usage: $0 \"pattern\""
|
||||
echo "Must be run from 'redox' directory"
|
||||
echo "e.g. $0 \"TODO.*error\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cookbook_recipes="cookbook/recipes"
|
||||
recipe_paths=$(grep -rl "$*" "$cookbook_recipes" --include recipe.toml)
|
||||
|
||||
for recipe_path in $recipe_paths
|
||||
do
|
||||
recipe_dir="$(dirname $recipe_path)"
|
||||
recipe_name="$(basename $recipe_dir)"
|
||||
echo "$recipe_name = {} # " $(grep "$*" $recipe_path)
|
||||
done
|
||||
Loading…
Reference in a new issue