Tux congratulates you upon subversion commit !
Up to Scripts
Hello !
Here is version 0.1 of tuxdroid-enjoy-the-commit.py
Tuxdroid congratulates you upon each commit done with subversion ...
Call this script in the "post-commit" hook of your subversion repository's hook directory like this:
python /path/to/tuxdroid-enjoy-the-commit.py --repository "$REPOS" --revision "$REV"
#See this URL for more background information on subversion hooks
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
Example post-commit file:
------BEGIN-------------
#!/bin/sh
# POST-COMMIT HOOK
REPOS="$1"
REV="$2"
python /path/to/tuxdroid-enjoy-the-commit.py --repository "$REPOS" --revision "$REV"
-------END--------------
Notes:
1) tuxdroid-enjoy-the-commit.py uses 'svnlook' to query the log message in the repository, so svnlook must be installed. It is expected to found in SVNLOOK (see code below).
2) tuxdroid-enjoy-the-commit.py uses the tuxttsdaemon and the voice_us_male (my commit logs are in English...). Make sure that they are installed and that tuxttsdaemon is running
Hello,
Previously Martin Thomas wrote:
Do we have subversion commit privs?
You have to administer the subversion repository to use this script. If the question was related to commit privileges on the tuxisalive repository, I have no idea...
Cool script, btw.
Thanks
We will soon put it in production in our company (http://www.gymglish.com), this will be great fun ! (I'll post some pictures when 'commit-tux' will be in production).
A++
Antoine