3 # post-checkout hook that compiles python files to byte code
4 # if branch was changed or removes byte code files for a specific branch
10 if [ \( "$new_branch" = 1 \) ]; then
11 if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then
14 python -m compileall -q -x '\.tox/' . &&
15 python -O -m compileall -q -x '\.tox/' .