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