git » repo-mgmt.git » commit dca4d1e

New super new-pkgs script to ease distro mgmt

author Urja (ARMLFS builder)
2025-03-02 10:32:10 UTC
committer Urja (ARMLFS builder)
2025-03-02 10:32:10 UTC
parent 9f2913623b1faa2cc91e9393c7471955d8462cf6

New super new-pkgs script to ease distro mgmt

process-new-pkgs.sh +27 -0

diff --git a/process-new-pkgs.sh b/process-new-pkgs.sh
new file mode 100755
index 0000000..e1ef043
--- /dev/null
+++ b/process-new-pkgs.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e
+
+order_up() {
+./orderize.py >> order
+nano order
+mv $1 /tmp/old
+touch $1
+if [[ -n "$(git status --porcelain | grep order)" ]]; then
+	git add order
+	git commit -m "new packages (auto)"
+fi
+./git-it-up.sh
+}
+
+mkdir -p /tmp/old
+
+# Note: we only handle base and kde5, not core
+cd /sources/base-pkgbuilds
+order_up armv7h-built-order
+cd /sources/kde5-pkgbuilds
+order_up built-order
+
+cd /sources/repo-mgmt
+
+( ./export-gits.sh )
+( ./push-gits.sh )