Rename the hook.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 27 Sep 2012 18:39:23 +0000 (14:39 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 27 Sep 2012 18:39:23 +0000 (14:39 -0400)
Makefile
irkerhook.py [moved from irkbot.py with 96% similarity]

index a6cfca9b06ce98a9720915f60c62945038ea9e66..a4ff6fbc65eb03063b0e8603dbfa7e9984c57382 100644 (file)
--- 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)
similarity index 96%
rename from irkbot.py
rename to irkerhook.py
index 2f4c7fd74affe11a35c07f662f3fb6a8b65bdfaa..48d17e6fe64d7d00493bb1ce4297dbae9e11e295 100755 (executable)
--- a/irkbot.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__