-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdebug-server.sh
executable file
·44 lines (44 loc) · 1.38 KB
/
debug-server.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
38
39
40
41
42
43
44
#!/bin/bash
npm install
#npm install -g node-inspector
if [ -d "src/server/lib" ] && [ -f "src/server/lib/glassfish-4-1.zip.partaa" ] &&
[ -f "src/server/lib/glassfish-4-1.zip.partab" ] &&
[ -f "src/server/lib/glassfish-4-1.zip.partac" ] &&
[ -f "src/server/lib/glassfish-4-1.zip.partad" ] &&
[ -f "src/server/lib/glassfish-4-1.zip.partae" ] &&
[ -f "src/server/lib/glassfish-4-1.zip.partaf" ] &&
[ -f "src/server/lib/glassfish-4-1.zip.partag" ] &&
[ ! -d "src/server/lib/glassfish4" ]; then
cd src/server/lib/
./installNC.sh
cd ../../..
fi
if [ -d "src/server/ext" ] && [ ! -d "src/server/ext/IVY" ] &&
[ -f "src/server/ext/IVY.zip.partaa" ] &&
[ -f "src/server/ext/IVY.zip.partab" ] &&
[ -f "src/server/ext/IVY.zip.partac" ]; then
cd src/server/ext/
./installIVY.sh
cd ../../..
fi
if [ -d "PVS" ] && [ -f "PVS/pvs" ] && [ -f "PVS/pvsio" ] && [ -f "PVS/proveit" ]; then
PVS_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )/PVS"
echo "PVS installation found at $PVS_DIR"
if [ -d "PVS/nasalib" ]; then
NASALIB_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )/PVS/nasalib"
echo "NASA LIB found at $NASALIB_DIR"
export PVS_LIBRARY_PATH=$NASALIB_DIR
cd PVS/nasalib
./install-scripts
cd ../..
else
cd PVS
bin/relocate
cd ..
fi
cd src/server
node-debug pvssocketserver.js pvsdir:$PVS_DIR restart
else
cd src/server
node-debug pvssocketserver.js restart
fi