]> sipb.mit.edu Git - snippets/.git/blobdiff - svn-hooks/commit-zephyr
apt-zephyr: Make parse_v2 a function.
[snippets/.git] / svn-hooks / commit-zephyr
index f23877ab5a0a555a1f276ae0b2df4b9582a4d76d..c0b48d7cf542b75272b0a5147fefbd63f3843ebe 100755 (executable)
@@ -1,4 +1,15 @@
 #!/bin/bash
+#
+# This is a script that can be called from a Subversion post-commit hook
+# to zephyr a summary of the commit or the full commit.
+#
+# Use by putting something like the following in hooks/post-commit:
+# REPOS="$1"
+# REV="$2"
+# /mit/snippets/svn-hooks/commit-zephyr "$REPOS" "$REV" -c scripts
+# /mit/snippets/svn-hooks/commit-zephyr "$REPOS" "$REV" --full -c scripts-auto -i commits
+
+export LC_ALL=en_US.UTF-8
 
 CLASS=test
 INSTANCE=@
@@ -38,4 +49,4 @@ svnlook info "$REPOS" -r "$REV" | (
     else
        echo svnlook diff "$REPOS" -r "$REV"
     fi
-) | zwrite -d -c "$CLASS" -i "$INSTANCE" -O "auto" -s "r$REV - $dirs"
+) | zwrite -d -c "$CLASS" -i "$INSTANCE" -O "auto" -s "SVN: r$REV"