Merge branch 'improve-scripts' into 'master'

Some script improvements

See merge request redox-os/redox!2297
This commit is contained in:
Ribbon 2026-08-10 23:57:41 -03:00
commit 8202f7df95
5 changed files with 5 additions and 7 deletions

View File

View File

@ -1,8 +1,6 @@
#!/usr/bin/env bash
# This script show all or some package size of the recipes ("stage.pkgar")
# It must be used by package maintainers to enforce the library linking size policy
# This script show the size of some recipe package size ("stage.pkgar")
# This script must be inside podman `make env`
RECIPES=$(target/release/repo cook-list ${*:---all-compiled} --display=csv | grep ",Built" | sort -t ',' -k 3 -V | cut -d ',' -f2)

0
scripts/category.sh → scripts/recipe-category.sh Executable file → Normal file
View File

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
# This script print the recipe configuration files with determined text
# This script print all recipe configuration files with a determined text
bat --decorations=always $(rg "$1" -li --sort=path recipes)

View File

@ -1,10 +1,10 @@
#!/usr/bin/env bash
# This script show the contents of the "stage" and "sysroot" folders in some recipe
# This script show the contents of the "stage" and "sysroot" directories in some recipe
if [ -z "$*" ]
then
echo "Show the contents of the stage and sysroot folders in recipe(s)"
echo "Show the contents of the "stage" and 'sysroot' directories in recipe(s)"
echo "Usage: $0 recipe1 ..."
echo "Must be run from the 'redox' directory"
echo "e.g. $0 kernel"
@ -22,5 +22,5 @@ fi
for recipe in $*
do
recipe_dir="$("$find_recipe" find "$recipe")"
ls -1 "$recipe_dir/target"/*/{stage,sysroot}
tree "$recipe_dir/target"/*/{stage,sysroot}
done