From 4c5859673b98582ef60fdacb207f9530bdee46ca Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 27 Sep 2012 14:39:23 -0400 Subject: [PATCH] Rename the hook. --- Makefile | 4 ++-- irkbot.py => irkerhook.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) rename irkbot.py => irkerhook.py (96%) diff --git a/Makefile b/Makefile index a6cfca9..a4ff6fb 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,10 @@ clean: PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,E1101,W0621,W0702" pylint: @pylint --output-format=parseable $(PYLINTOPTS) irker - @pylint --output-format=parseable $(PYLINTOPTS) irkbot.py + @pylint --output-format=parseable $(PYLINTOPTS) irkerhook.py -SOURCES = README COPYING NEWS BUGS irker irkbot.py Makefile irker.xml irker-logo.png +SOURCES = README COPYING NEWS BUGS irker irkerhook.py Makefile irker.xml irker-logo.png version: @echo $(VERS) diff --git a/irkbot.py b/irkerhook.py similarity index 96% rename from irkbot.py rename to irkerhook.py index 2f4c7fd..48d17e6 100755 --- a/irkbot.py +++ b/irkerhook.py @@ -5,7 +5,7 @@ # This script contains git porcelain and porcelain byproducts. # Requires Python 2.6, or 2.4 with the 2.6 json library installed. # -# usage: irkbot.py [-V] [-n] +# usage: irkerhook.py [-V] [-n] # # This script is meant to be run in a post-commit hook. Try it with # -n to see the notification dumped to stdout and verify that it looks @@ -13,7 +13,7 @@ # # Currently works for svn and git. For svn you must call it as follows: # -# irkbot.py type=svn repository=REPO-PATH commit=REVISION channels=CHANNELS server=SERVER +# irkerhook.py type=svn repository=REPO-PATH commit=REVISION channels=CHANNELS server=SERVER # # REPO-PATH must be the absolute path of the SVN repository (first # argument of Subversion post-commit). REVISION must be the Subversion numeric @@ -109,7 +109,7 @@ class GitExtractor: self.project = os.path.basename(here) break elif here == '/': - sys.stderr.write("irkbot.py: no git repo below root!\n") + sys.stderr.write("irkerhook.py: no git repo below root!\n") sys.exit(1) here = os.path.dirname(here) # Revision level @@ -166,7 +166,7 @@ if __name__ == "__main__": try: (options, arguments) = getopt.getopt(sys.argv[1:], "nV") except getopt.GetoptError, msg: - print "irkbot.py: " + str(msg) + print "irkerhook.py: " + str(msg) raise SystemExit, 1 vcs = "git" @@ -177,7 +177,7 @@ if __name__ == "__main__": if switch == '-n': notify = False elif switch == '-V': - print "irkbot.py: version", version + print "irkerhook.py: version", version sys.exit(0) # Force the type if not git, also make globals settable @@ -238,7 +238,7 @@ if __name__ == "__main__": extractor.url = urlify(extractor, extractor.commit) if not extractor.project: - sys.stderr.write("irkbot.py: no project name set!\n") + sys.stderr.write("irkerhook.py: no project name set!\n") sys.exit(1) privmsg = template % extractor.__dict__ -- 2.26.2