From d4b3f71482165cfe92a36134884fafa6d68befb0 Mon Sep 17 00:00:00 2001 From: memdmp Date: Fri, 20 Jun 2025 19:01:11 +0000 Subject: scripting: allow ignoring repos --- build-repo | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'build-repo') diff --git a/build-repo b/build-repo index d80c6dc..b43b9e9 100755 --- a/build-repo +++ b/build-repo @@ -10,29 +10,31 @@ set -eax ALL_TARGET="$PWD/target" export APORTSDIR="$PWD/src" for REPOPATH in ./src/*; do - cd "$REPOPATH"; - REPO="$(basename "$REPOPATH")"; - for PKG in ./*; do - if [[ -d "$PKG" ]] && [[ -f "$PKG/APKBUILD" ]]; then - cd "$PKG"; - PKG="$(basename "$PKG")"; + if ! [[ -f "$REPOPATH/.ignored" ]]; then + cd "$REPOPATH"; + REPO="$(basename "$REPOPATH")"; + for PKG in ./*; do + if [[ -d "$PKG" ]] && [[ -f "$PKG/APKBUILD" ]]; then + cd "$PKG"; + PKG="$(basename "$PKG")"; - if [[ "$FILTER" == "" ]] || [[ "$FILTER" == "$REPO" ]] || [[ "$FILTER" == "$PKG" ]] || [[ "$FILTER" == "$REPO/$PKG" ]]; then - if [[ "$IPV6_ONLY" == "true" ]] && [[ -f ".is_ipv4_only" ]]; then - echo -e "Skipping repository." - else - if [[ "$NEWSUM" == "1" ]]; then abuild checksum; fi - if [[ "$ROOTBLD" != "0" ]]; then - abuild -P "$ALL_TARGET" rootbld + if [[ "$FILTER" == "" ]] || [[ "$FILTER" == "$REPO" ]] || [[ "$FILTER" == "$PKG" ]] || [[ "$FILTER" == "$REPO/$PKG" ]]; then + if [[ "$IPV6_ONLY" == "true" ]] && [[ -f ".is_ipv4_only" ]]; then + echo -e "Skipping repository." else - abuild -r -P "$ALL_TARGET" + if [[ "$NEWSUM" == "1" ]]; then abuild checksum; fi + if [[ "$ROOTBLD" != "0" ]]; then + abuild -P "$ALL_TARGET" rootbld + else + abuild -r -P "$ALL_TARGET" + fi fi fi - fi - cd ..; - fi - done - cd ../..; + cd ..; + fi + done + cd ../..; + fi done -- cgit v1.2.3