From: Eric S. Raymond Date: Thu, 30 Aug 2012 22:30:47 +0000 (-0400) Subject: Users don't need to know this is a Python program. X-Git-Tag: 1.0~65 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f712d158a184d8f5c6d335f28dbd53b8d76018af;p=irker.git Users don't need to know this is a Python program. --- diff --git a/Makefile b/Makefile index 59fe7f2..ac3ad66 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Makefile for the irker relaying tool -VERS=$(shell irker.py -V | sed 's/irker version //') +VERS=$(shell irker -V | sed 's/irker version //') docs: irker.html irker.1 @@ -11,12 +11,12 @@ irker.html: irker.xml install: irker.1 uninstall install -m 755 -o 0 -g 0 -d $(ROOT)/usr/bin/ - install -m 755 -o 0 -g 0 irker.py $(ROOT)/usr/bin/irker.py + install -m 755 -o 0 -g 0 irker $(ROOT)/usr/bin/irker.py install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man1/ install -m 755 -o 0 -g 0 irker.1 $(ROOT)/usr/share/man/man1/irker.1 uninstall: - rm -f ${ROOT}/usr/bin/irker.py ${ROOT}/usr/share/man/man1/irker.1 + rm -f ${ROOT}/usr/bin/irker ${ROOT}/usr/share/man/man1/irker.1 clean: rm -f irker irker.1 irker-*.rpm irker-*.tar.gz *~ @@ -24,10 +24,10 @@ clean: PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,E1101" pylint: - @pylint --output-format=parseable $(PYLINTOPTS) irker.py + @pylint --output-format=parseable $(PYLINTOPTS) irker -SOURCES = README COPYING NEWS irker.py Makefile irker.xml irker-logo.jpg +SOURCES = README COPYING NEWS irker Makefile irker.xml irker-logo.jpg version: @echo $(VERS) diff --git a/irker.py b/irker similarity index 100% rename from irker.py rename to irker diff --git a/irker.xml b/irker.xml index 473a248..6aee9b9 100644 --- a/irker.xml +++ b/irker.xml @@ -17,7 +17,7 @@ - irker.py + irker -p number -d debuglevel -V @@ -32,10 +32,11 @@ channels. The use case in mind when it was designed was broadcasting notifications from commit hooks in version-control systems. irker is a socket server that listens -on a UDP or TCP port (normally UDP port 4747) for textual request -lines containing JSON objects and terminated by a newline. Each JSON -object must have exactly two members: "to" specifying a destination or -destination list, and "privmsg" specifying the message test. Examples: +on for UDP or TCP packets on a port (normally 4747) for textual +request lines containing JSON objects and terminated by a +newline. Each JSON object must have exactly two members: "to" +specifying a destination or destination list, and "privmsg" specifying +the message test. Examples: {"to":"irc://chat.freenode.net/git-ciabot", "privmsg":"Hello, world!"}