diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | build-repo | 40 |
2 files changed, 23 insertions, 20 deletions
@@ -1,4 +1,5 @@ /target /src/*/*/src /src/*/*/pkg -/codeberg-push-env +/src/*/.ignored +/codeberg-push-env
\ No newline at end of file @@ -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 |