diff options
author | Parabola git <git@parabola.nu> | 2020-12-15 12:00:02 +0000 |
---|---|---|
committer | Parabola git <git@parabola.nu> | 2020-12-15 12:00:02 +0000 |
commit | e89a1c1d95eca461c0c6f2691c0392339f9b177a (patch) | |
tree | 8be32fefcff7bdc78e8a3617ee5b08e7fe92349c /abslibre | |
parent | a289d4eba8f99fb07622f487ac01c42905329d88 (diff) |
Update from cron
Diffstat (limited to 'abslibre')
-rwxr-xr-x | abslibre/abslibre.git/hooks/commit-msg.wip | 29 | ||||
-rwxr-xr-x | abslibre/abslibre.git/hooks/update | 10 |
2 files changed, 0 insertions, 39 deletions
diff --git a/abslibre/abslibre.git/hooks/commit-msg.wip b/abslibre/abslibre.git/hooks/commit-msg.wip deleted file mode 100755 index 0f8af85..0000000 --- a/abslibre/abslibre.git/hooks/commit-msg.wip +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash -set -e - -#readonly REBUILD_PKGS=( -# libre/lxappearance-obconf-gtk3 -#) -#for pkg in ${REBUILD_PKGS[@]} -#do echo '==> Rebuilding ${pkg} ...' -# ~autobuilder/.local/bin/autobuild ${pkg} -#done - - -commit_msg_file="$1" -commit_msg="$(cat ${commit_msg_file})" -autobuild_rx='^\[([^/]*/[^/]*)\]: *autobuild$' # eg: '[pcr/foo]:autobuild' - -# auto-rebuild and reject push -[[ "${commit_msg}" =~ "${autobuild_rx}" ]] || exit 0 - -if [[ "${commit_msg}" =~ "${autobuild_rx}" ]] -then repo_pkg="${BASH_REMATCH[1]}" - if git ls-tree --name-only -r master | grep "^${repo_pkg}/PKGBUILD$" # &> /dev/null - then echo '==> Rebuilding ${pkg} ...' - if ~autobuilder/.local/bin/autobuild ${repo_pkg} - then exit 42 - else echo "${commit_msg} - autobuild failed" > ${commit_msg_file} - fi - fi -fi diff --git a/abslibre/abslibre.git/hooks/update b/abslibre/abslibre.git/hooks/update deleted file mode 100755 index 88bbee5..0000000 --- a/abslibre/abslibre.git/hooks/update +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -ref=$1 -prev_sha=$2 -next_sha=$3 - -# prevent re-writing history on master branch -# autobuilder can not handle non-fast-forward commits -[[ "${ref}" != 'master' ]] || \ -git merge-base --is-ancestor "${prev_sha}" "${next_sha}" |