summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xbuild-repo14
2 files changed, 14 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index ea8c4bf..651c676 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,4 @@
/target
+/src/*/*/src
+/src/*/*/pkg
+
diff --git a/build-repo b/build-repo
index b4969f5..41af2c1 100755
--- a/build-repo
+++ b/build-repo
@@ -1,9 +1,10 @@
#!/usr/bin/env zsh
set -eax
# note: we assume `abuild-keygen -a -i` has alr been run
-ALL_TARGET="$(pwd)/target"
+ALL_TARGET="$PWD/target"
rm -rf "$ALL_TARGET"
mkdir -p "$ALL_TARGET"
+export APORTSDIR="$PWD/src"
for REPOPATH in ./src/*; do
cd "$REPOPATH";
REPO="$(basename "$REPOPATH")";
@@ -11,10 +12,17 @@ for REPOPATH in ./src/*; do
cd "$PKG";
PKG="$(basename "$PKG")";
- if [[ "$NEWSUM" == "1" ]]; then abuild checksum; fi
- abuild -r -P "$ALL_TARGET"
+ if [[ "$FILTER" == "" ]] || [[ "$FILTER" == "$REPO" ]] || [[ "$FILTER" == "$PKG" ]]; then
+ if [[ "$NEWSUM" == "1" ]]; then abuild checksum; fi
+ if [[ "$ROOTBLD" == "1" ]]; then
+ abuild rootbld -P "$ALL_TARGET"
+ else
+ abuild -r -P "$ALL_TARGET"
+ fi
+ fi
cd ..;
done
cd ../..;
done
+