mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
0c1074223b
if css changes
18 lines
442 B
Bash
Executable File
18 lines
442 B
Bash
Executable File
#!/bin/sh
|
|
|
|
git submodule init
|
|
git submodule update
|
|
|
|
PREVIOUS_HEAD=$1
|
|
# 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
|
|
fab css
|
|
fi
|