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