Cleaned up launch scripts

This commit is contained in:
Lloyd McKenzie
2019-12-19 00:04:22 -07:00
parent d9a3c6a76b
commit b270e6b5db
4 changed files with 132 additions and 111 deletions

View File

@@ -1,27 +1,29 @@
#!/bin/bash
publisher_jar=org.hl7.fhir.publisher.jar
input_cache_path=./input-cache/
set -e
echo Checking internet connection...
wget -q --spider tx.fhir.org
if [ $? -eq 0 ]; then
echo "Online"
txoption=""
echo "Online"
txoption=""
else
echo "Offline"
txoption="-tx n/a"
echo "Offline"
txoption="-tx n/a"
fi
echo "$txoption"
publisher=./input-cache/org.hl7.fhir.publisher.jar
publisher=$input_cache_path/$publisher_jar
if test -f "$publisher"; then
JAVA -jar ./input-cache/org.hl7.fhir.publisher.jar -ig ig.ini $txoption
JAVA -jar $publisher -ig ig.ini $txoption
else
publisher=../org.hl7.fhir.publisher.jar
if test -f "$publisher"; then
JAVA -jar ../org.hl7.fhir.publisher.jar -ig ig.ini $txoption
else
echo IG Publisher NOT FOUND in input-cache or parent folder... aborting
fi
publisher=../$publisher_jar
if test -f "$publisher"; then
JAVA -jar $publisher -ig ig.ini $txoption
else
echo IG Publisher NOT FOUND in input-cache or parent folder... aborting
fi
fi