From 7c356e53ee634e120cf9d90992e1f892f54eb660 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Mon, 10 Aug 2026 17:53:05 -0300 Subject: [PATCH] Some script improvements --- scripts/{find-recipe.sh => installed-pkg-files.sh} | 0 scripts/pkg-size.sh | 4 +--- scripts/{category.sh => recipe-category.sh} | 0 scripts/recipe-match.sh | 2 +- scripts/show-package.sh | 6 +++--- 5 files changed, 5 insertions(+), 7 deletions(-) rename scripts/{find-recipe.sh => installed-pkg-files.sh} (100%) mode change 100755 => 100644 rename scripts/{category.sh => recipe-category.sh} (100%) mode change 100755 => 100644 diff --git a/scripts/find-recipe.sh b/scripts/installed-pkg-files.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/find-recipe.sh rename to scripts/installed-pkg-files.sh diff --git a/scripts/pkg-size.sh b/scripts/pkg-size.sh index 0993885c1..7ca84a863 100755 --- a/scripts/pkg-size.sh +++ b/scripts/pkg-size.sh @@ -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) diff --git a/scripts/category.sh b/scripts/recipe-category.sh old mode 100755 new mode 100644 similarity index 100% rename from scripts/category.sh rename to scripts/recipe-category.sh diff --git a/scripts/recipe-match.sh b/scripts/recipe-match.sh index 15edb78e7..5eec9645a 100755 --- a/scripts/recipe-match.sh +++ b/scripts/recipe-match.sh @@ -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) diff --git a/scripts/show-package.sh b/scripts/show-package.sh index dd7b161d7..b883c57a4 100755 --- a/scripts/show-package.sh +++ b/scripts/show-package.sh @@ -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