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