diff options
author | tv <tv@nomic.retiolum> | 2014-03-14 04:17:59 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2014-03-14 04:17:59 +0100 |
commit | e6a6809bb14fcc99231358dc3e3b389e451f57d3 (patch) | |
tree | 8d805aea5b3597fa14ca303f6da3b9dfa326034d | |
parent | d79aeb890dfbf97c2dd85f48c3fb04d2f07bf066 (diff) |
irc-announce: make IRC_* configurable
-rwxr-xr-x | git/gitolite-hooks/irc-announce | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/git/gitolite-hooks/irc-announce b/git/gitolite-hooks/irc-announce index 394d5261..aa9f91f3 100755 --- a/git/gitolite-hooks/irc-announce +++ b/git/gitolite-hooks/irc-announce @@ -1,11 +1,18 @@ #! /bin/sh set -euf +config_file="$HOME/.local/krebs/irc-announce" +if test -f "$config_file"; then + . "$config_file" +fi + +# XXX when changing IRC_CHANNEL or IRC_SERVER/_PORT, don't forget to update +# any relevant gitolite LOCAL_CODE! # CAVEAT we hope that IRC_NICK is unique -IRC_NICK="gl$GL_TID" -IRC_CHANNEL='#retiolum' -IRC_SERVER='ire.retiolum' -IRC_PORT=6667 +IRC_NICK="${IRC_NICK-gl$GL_TID}" +IRC_CHANNEL="${IRC_CHANNEL-#retiolum}" +IRC_SERVER="${IRC_SERVER-ire.retiolum}" +IRC_PORT="${IRC_PORT-6667}" # for privmsg_cat below export IRC_CHANNEL |