##// END OF EJS Templates
minor tweak to git hooks...
MinRK -
Show More
@@ -1,17 +1,22 b''
1 1 #!/bin/sh
2 2
3 3 git submodule init
4 4 git submodule update
5 5
6 PREVIOUS_HEAD=$1
6 if [[ "$(basename $0)" == "post-merge" ]]; then
7 PREVIOUS_HEAD=ORIG_HEAD
8 else
9 PREVIOUS_HEAD=$1
10 fi
11
7 12 # if style changed (and less/fabric available), rebuild sourcemaps
8 13 if [[
9 14 ! -z "$(git diff $PREVIOUS_HEAD IPython/html/static/style/ipython.min.css)"
10 15 && ! -z "$(git diff $PREVIOUS_HEAD IPython/html/static/style/style.min.css)"
11 16 && ! -z $(which 2>/dev/null lessc)
12 17 && ! -z $(which 2>/dev/null fab)
13 18 ]]; then
14 19 echo "rebuilding sourcemaps"
15 20 cd IPython/html
16 fab css
21 fab css || echo "failed to compile css"
17 22 fi
General Comments 0
You need to be logged in to leave comments. Login now