summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xbuild-repo40
2 files changed, 23 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index 2d9613e..89ffce1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
/target
/src/*/*/src
/src/*/*/pkg
-/codeberg-push-env
+/src/*/.ignored
+/codeberg-push-env \ No newline at end of file
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