summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParabola git <git@parabola.nu>2020-11-12 06:00:01 +0000
committerParabola git <git@parabola.nu>2020-11-12 06:00:01 +0000
commite2d92a6a5c5e40cf074bcc45b40860bda3349807 (patch)
tree37adb3fff754442d3f3b8d4d67eba7426615f80e
parent85a7b2824b633939e1cee946a6669c489d082aca (diff)
Update from cron
l---------abslibre/abslibre.git/hooks/.#commit-msg1
-rwxr-xr-xabslibre/abslibre.git/hooks/commit-msg18
2 files changed, 12 insertions, 7 deletions
diff --git a/abslibre/abslibre.git/hooks/.#commit-msg b/abslibre/abslibre.git/hooks/.#commit-msg
new file mode 120000
index 0000000..9772bb8
--- /dev/null
+++ b/abslibre/abslibre.git/hooks/.#commit-msg
@@ -0,0 +1 @@
+root@winston.parabola.nu.1971724 \ No newline at end of file
diff --git a/abslibre/abslibre.git/hooks/commit-msg b/abslibre/abslibre.git/hooks/commit-msg
index b46ace0..30a4595 100755
--- a/abslibre/abslibre.git/hooks/commit-msg
+++ b/abslibre/abslibre.git/hooks/commit-msg
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -e
-readonly REBUILD_PKGS=(
- libre/lxappearance-obconf-gtk3
-)
+#readonly REBUILD_PKGS=(
+# libre/lxappearance-obconf-gtk3
+#)
# rebuild/sign per autobuilder
@@ -11,8 +11,12 @@ readonly REBUILD_PKGS=(
#do echo '==> Rebuilding ${pkg} ...'
# ~autobuilder/.local/bin/autobuild ${pkg}
#done
-echo '==> Rebuilding ${pkg} ...'
-if [[ "$1" =~ ^\[([^/]*/([^/]*)\]: autobuild$ ]]
-then ~autobuilder/.local/bin/autobuild ${pkg}
+commit_msg_file="$@"
+if [[ "$(cat ${commit_msg_file})" =~ ^\[([^/]*/[^/]*)\]: *autobuild$ ]]
+then pkg=${BASH_REMATCH[1]}
+ if git ls-tree --name-only -r master | grep "${pkg}/PKGBUILD"
+ then echo '==> Rebuilding ${pkg} ...'
+ ~autobuilder/.local/bin/autobuild ${pkg}
+ exit 1
+ fi
fi
-