Added possibility to use jar in parent folder besides input-cache; offline publishing option;

This commit is contained in:
José Costa Teixeira
2019-12-18 00:10:18 +01:00
parent 86f9933950
commit ed314ded7b
4 changed files with 145 additions and 9 deletions

View File

@@ -1,3 +1,27 @@
#!/bin/bash
set -e
java -jar input-cache/org.hl7.fhir.publisher.jar -ig ig.ini
echo Checking internet connection...
wget -q --spider tx.fhir.org
if [ $? -eq 0 ]; then
echo "Online"
txoption=""
else
echo "Offline"
txoption="-tx n/a"
fi
echo "$txoption"
publisher=./input-cache/org.hl7.fhir.publisher.jar
if test -f "$publisher"; then
JAVA -jar ./input-cache/org.hl7.fhir.publisher.jar -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
fi