Debian Codegraph @

devscripts/git-hooks/post-checkout

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # post-checkout hook: compile python files to byte code
4
5 prev_HEAD="$1"
6 new_HEAD="$2"
7 new_branch="$3"
8
9 if [scip-shell system . . `[`. "$new_branch" = 1 ]; then
10 # if branch was changed - remove old bytecode files and outdated docs
11 findscip-shell system . . find. . -name '*.py[co]' -delete &&
12 rmscip-shell system . . rm. -rf docs/_build/html docs/html
13 fi