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)
# 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
#
# 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
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
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"
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
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__