From 811e267642c9677610e30545b05f4dc4334bac28 Mon Sep 17 00:00:00 2001 From: Petr Hrdina Date: Sun, 22 Jun 2025 12:35:04 +0200 Subject: [PATCH] Speedup category.sh for podman build --- scripts/category.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/category.sh b/scripts/category.sh index 933fab79..28e815d7 100755 --- a/scripts/category.sh +++ b/scripts/category.sh @@ -10,13 +10,22 @@ then exit 1 fi -set -x - action="${1#-}" +recipe_list="" +first=1 + for recipe in `find cookbook/recipes/"$2" -name "recipe.*"` do recipe_folder=`dirname "$recipe"` recipe_name=`basename "$recipe_folder"` - make "$action"."$recipe_name" -done \ No newline at end of file + if [ "$first" -eq 1 ]; then + recipe_list="$recipe_name" + first=0 + else + recipe_list="$recipe_list,$recipe_name" + fi +done + +set -x +make "$action"l."$recipe_list"