summaryrefslogtreecommitdiffstats
path: root/cleanbuild-repo
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-06-14 06:10:21 +0200
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-06-14 06:10:21 +0200
commite36285e238ab2216b93b83a33d9d74c95c017ce0 (patch)
tree0e0910608f83907cecdb8f4bef557c4e7b13dae4 /cleanbuild-repo
parent7cb0c74b3748391b990ee7ebe5d307d3c2feeaaf (diff)
downloadalpine-packages-e36285e238ab2216b93b83a33d9d74c95c017ce0.tar.gz
alpine-packages-e36285e238ab2216b93b83a33d9d74c95c017ce0.tar.bz2
alpine-packages-e36285e238ab2216b93b83a33d9d74c95c017ce0.tar.lz
alpine-packages-e36285e238ab2216b93b83a33d9d74c95c017ce0.zip

feat: some scripting

Diffstat (limited to 'cleanbuild-repo')
-rwxr-xr-xcleanbuild-repo17
1 files changed, 17 insertions, 0 deletions
diff --git a/cleanbuild-repo b/cleanbuild-repo
new file mode 100755
index 0000000..3bb274f
--- /dev/null
+++ b/cleanbuild-repo
@@ -0,0 +1,17 @@
+#!/usr/bin/env zsh
+set -e
+# This script exists to be able to build repositories, from scratch, without having any existing packages prebuild in the target directory.
+# It only works with rootbld.
+ALL_TARGET="$PWD/target"
+rm -rf "$ALL_TARGET"
+mkdir "$ALL_TARGET"
+source env
+buildpkg() {
+ (cd src/"$1" && abuild -P "$ALL_TARGET" rootbld)
+}
+
+# pkgs with dependents
+buildpkg util/gcompat-libdl2
+
+# build the rest
+"$PWD/build-repo"