forked from opencb/jsorolla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-network-viewer.sh
executable file
·37 lines (29 loc) · 1.02 KB
/
build-network-viewer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
NAME="network-viewer"
BP=build/$NAME
rm -rf $BP
mkdir -p $BP
mkdir -p $BP/fonts
mkdir -p $BP/fontawesome
#mkdir -p $BP/images
mkdir -p $BP/css
mkdir -p $BP/bower_components
mkdir -p $BP/lib/
cp -r bower_components/* $BP/bower_components/
cp -r src/lib/components $BP/lib/
cp -r src/lib/network $BP/lib/
cp -r src/lib/data-adapter $BP/lib/
cp -r src/lib/data-source $BP/lib/
cp -r src/lib/utils.js $BP/lib/
cp -r src/lib/svg.js $BP/lib/
cp -r src/lib/cellbase-manager.js $BP/lib/
cp -r src/lib/opencga-manager.js $BP/lib/
cp -r src/network-viewer/* $BP/
mv $BP/jso-network-viewer-index.html $BP/index.html
sed -i s@../../styles/@@g $BP/index.html
cp -r styles/fonts/* $BP/fonts/
sed -i s@../../bower_components/@bower_components/@g $BP/index.html
sed -i s@../../bower_components/@bower_components/@g $BP/jso-network-viewer.html
sed -i s@../lib/@lib/@g $BP/index.html
sed -i s@../lib/@lib/@g $BP/jso-network-viewer.html
sed -i s@../../../../bower_components/@../../../bower_components/@g $BP/lib/components/table/jso-table.html