From d30c88ec829e40333150d9f0aece53ba1bcdd05a Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 5 Feb 2022 23:06:30 +0000 Subject: added auto-mainainer to build meta packages --- auto/create_meta.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 auto/create_meta.sh (limited to 'auto') diff --git a/auto/create_meta.sh b/auto/create_meta.sh new file mode 100755 index 0000000..c05b084 --- /dev/null +++ b/auto/create_meta.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +create() { + local desc=$* + + printf "#!/bin/bash\n" + printf "# This file was automatically generated, do not edit!" + printf "\n\n" + + printf "DESC=\"$desc\"\n" + printf "DEPS=(" + while read repo; do + [ -d repo/$repo ] && [ ! "$repo" = "meta" ] && + for file in $(ls repo/$repo/*.xibuild); do + local name=$(basename -s ".xibuild" $file) + printf " $name" + done + done + + printf ")\n" +} + +ls repo | create 'AlL tHe pacKageS!!' > repo/meta/all.xibuild + +for repo in $(ls repo); do + [ "$repo " = "meta" ] || echo $repo | create "All the the packages available in $repo" > repo/meta/$repo.xibuild +done -- cgit v1.2.1