Some script improvements

This commit is contained in:
Ribbon 2026-08-10 17:53:05 -03:00
parent 90a2d46450
commit 7c356e53ee
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