diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:27:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 14:27:58 +0000 |
commit | 407c285aea9830dc068a3bb49ada360c909d438b (patch) | |
tree | 721f0b462bde352148c2d34bd503e55f2bf0a934 /debian/local/irkerhook-git | |
parent | Adding upstream version 2.23+dfsg. (diff) | |
download | irker-fff1b59fbe14b1bc85a6496180e92dbcab183a12.tar.xz irker-fff1b59fbe14b1bc85a6496180e92dbcab183a12.zip |
Adding debian version 2.23+dfsg-1.debian/2.23+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/local/irkerhook-git')
-rwxr-xr-x | debian/local/irkerhook-git | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/local/irkerhook-git b/debian/local/irkerhook-git new file mode 100755 index 0000000..1f746e8 --- /dev/null +++ b/debian/local/irkerhook-git @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +if [ -z "$(git config --get irker.project)" -a -z "$(git config --get irker.template)" ] +then + echo "CONFIGURATION ERROR: Neither irker.project nor irker.template defined" + echo "NOT sending IRC notification" + exit 0 +fi + +echo "sending IRC notification" + +while read old new refname +do + irkerhook --refname=${refname} $(git rev-list --reverse ${old}..${new}) +done |