diff options
Diffstat (limited to 'build-repo')
-rwxr-xr-x | build-repo | 40 |
1 files changed, 21 insertions, 19 deletions
@@ -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 |