##// END OF EJS Templates
Merge pull request #6289 from takluyver/git-hooks-bash...
Merge pull request #6289 from takluyver/git-hooks-bash Use bash shebang line for git hooks

File last commit:

r17605:67a0a4ce
r17652:944c2cf5 merge
Show More
post-checkout
22 lines | 561 B | text/plain | TextLexer
Thomas Kluyver
Git hooks use bash specific syntax
r17605 #!/bin/bash
MinRK
add git hooks for submodules...
r10551
git submodule init
git submodule update
MinRK
attempt to regen source maps in git-hooks...
r17335
MinRK
minor tweak to git hooks...
r17361 if [[ "$(basename $0)" == "post-merge" ]]; then
PREVIOUS_HEAD=ORIG_HEAD
else
PREVIOUS_HEAD=$1
fi
MinRK
attempt to regen source maps in git-hooks...
r17335 # if style changed (and less/fabric available), rebuild sourcemaps
if [[
! -z "$(git diff $PREVIOUS_HEAD IPython/html/static/style/ipython.min.css)"
&& ! -z "$(git diff $PREVIOUS_HEAD IPython/html/static/style/style.min.css)"
&& ! -z $(which 2>/dev/null lessc)
&& ! -z $(which 2>/dev/null fab)
]]; then
echo "rebuilding sourcemaps"
cd IPython/html
MinRK
minor tweak to git hooks...
r17361 fab css || echo "failed to compile css"
MinRK
attempt to regen source maps in git-hooks...
r17335 fi