summaryrefslogtreecommitdiffstats
path: root/build-repo
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-06-20 19:01:11 +0000
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-06-20 19:01:11 +0000
commitd4b3f71482165cfe92a36134884fafa6d68befb0 (patch)
treeebfecd58db1ab9ba71710cc9228b746a40e53680 /build-repo
parent777956e872cf72bb4c5d8ee7829e71e792a90cbb (diff)
downloadalpine-packages-d4b3f71482165cfe92a36134884fafa6d68befb0.tar.gz
alpine-packages-d4b3f71482165cfe92a36134884fafa6d68befb0.tar.bz2
alpine-packages-d4b3f71482165cfe92a36134884fafa6d68befb0.tar.lz
alpine-packages-d4b3f71482165cfe92a36134884fafa6d68befb0.zip

scripting: allow ignoring repos

Diffstat (limited to 'build-repo')
-rwxr-xr-xbuild-repo40
1 files changed, 21 insertions, 19 deletions
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