43fd088349
Replace all 'rbos'/'RBOS' references with 'redbear'/'Red Bear OS' across the build system, scripts, docs, and configs. Renamed files: rbos.ipxe → redbear.ipxe assets/rbos-icon.png → assets/redbear-icon.png recipes/system/rbos-info → recipes/system/redbear-info Added redbear-info: a system tool that enumerates all Red Bear OS custom components, checks runtime availability via scheme paths and binary presence, and prints status/test info. Supports --verbose, --json, and --test output modes. Zero external dependencies.
27 lines
766 B
Bash
Executable File
27 lines
766 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script create a list with:
|
|
# "recipe-name = {} #TODO"
|
|
# For quick testing of WIP recipes
|
|
|
|
# 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 the Red Bear OS build directory"
|
|
echo "e.g. $0 \"TODO.*error\""
|
|
exit 1
|
|
fi
|
|
|
|
cookbook_recipes="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 |