From: Oleg Broytman Date: Sun, 5 Jun 2016 11:13:39 +0000 (+0300) Subject: Add post-checkout hook that compiles python files X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d38be90c1d67717c7113486414e65d8b2c8c4151;p=git-scripts.git Add post-checkout hook that compiles python files --- diff --git a/hooks/post-checkout/compyle-all b/hooks/post-checkout/compyle-all new file mode 100755 index 0000000..daf6ab3 --- /dev/null +++ b/hooks/post-checkout/compyle-all @@ -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