]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-rewrite
Add post-merge and post-rewrite hooks
[git-scripts.git] / hooks / post-rewrite
diff --git a/hooks/post-rewrite b/hooks/post-rewrite
new file mode 100755 (executable)
index 0000000..02466f9
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# post-rewrite hook that compiles python files to byte code
+
+python2.7 -m compileall -q . &&
+python2.7 -O -m compileall -q .
+
+exit 0