-
Notifications
You must be signed in to change notification settings - Fork 2
/
_refresh.sh
42 lines (35 loc) · 1.07 KB
/
_refresh.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
#!/bin/bash
#DO NOT EDIT WITH WINDOWS
tooling_jar=tooling-1.4.1-SNAPSHOT-jar-with-dependencies.jar
input_cache_path=./input-cache
resources_path=/input/resources
root_dir=$PWD
ig_path=/input/opioid-cds.xml
# echo ${root_dir}
# echo ${ig_path}
set -e
echo Checking internet connection...
# wget -q --spider tx.fhir.org
if [ $? -eq 0 ]; then
echo "Online"
fsoption=""
#"-fs http://cds-sandbox.alphora.com/cqf-ruler-dstu3/fhir/"
else
echo "Offline"
fsoption=""
fi
echo "$fsoption"
tooling=$input_cache_path/$tooling_jar
if test -f "$tooling"; then
JAVA -jar $tooling -RefreshIG -root-dir="$root_dir" -ig-path="$ig_path" -rp="$resources_path" -d -p -t -ss="false" $fsoption
else
tooling=../$tooling_jar
echo $tooling
if test -f "$tooling"; then
JAVA -jar $tooling -RefreshIG -root-dir="$root_dir" -ig-path="$ig_path" -rp="$resources_path" -d -p -t -ss="false" $fsoption
else
echo CQF Tooling NOT FOUND in input-cache or parent folder. Please run _updateCQFTooling. Aborting...
fi
fi
sh _refreshTerminologyBundle.sh
sh input/pagecontent/quick-start-bundles/_refreshQuickStart.sh