From 7c5735b3d6fbec7587808b732f700ba364d97b1f Mon Sep 17 00:00:00 2001 From: patrick-werner Date: Wed, 11 Sep 2019 14:32:52 -0400 Subject: [PATCH 1/5] added bash scripts --- _genonce.sh | 3 +++ _updatePublisher.sh | 5 +++++ 2 files changed, 8 insertions(+) create mode 100755 _genonce.sh create mode 100755 _updatePublisher.sh diff --git a/_genonce.sh b/_genonce.sh new file mode 100755 index 0000000..55f4e58 --- /dev/null +++ b/_genonce.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +java -jar input-cache/org.hl7.fhir.publisher.jar -ig ig.ini diff --git a/_updatePublisher.sh b/_updatePublisher.sh new file mode 100755 index 0000000..dfbd65f --- /dev/null +++ b/_updatePublisher.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +echo "Downloading most recent publisher - it's ~100 MB, so this may take a bit" +wget -P -O input-cache https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar +echo "Done" From 912b4a885a6bcd7d7723df24453bc3523831ee2d Mon Sep 17 00:00:00 2001 From: patrick-werner Date: Wed, 11 Sep 2019 16:27:58 -0400 Subject: [PATCH 2/5] corrected update script --- _updatePublisher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_updatePublisher.sh b/_updatePublisher.sh index dfbd65f..2c333ac 100755 --- a/_updatePublisher.sh +++ b/_updatePublisher.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e echo "Downloading most recent publisher - it's ~100 MB, so this may take a bit" -wget -P -O input-cache https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar +wget -P input-cache -N https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar echo "Done" From 8d7f9967d8d97a551b1e9eda3567d1a6e2398b93 Mon Sep 17 00:00:00 2001 From: patrick-werner Date: Wed, 11 Sep 2019 16:30:14 -0400 Subject: [PATCH 3/5] fixed IG update script --- _updatePublisher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_updatePublisher.sh b/_updatePublisher.sh index 2c333ac..74ddee6 100755 --- a/_updatePublisher.sh +++ b/_updatePublisher.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e echo "Downloading most recent publisher - it's ~100 MB, so this may take a bit" -wget -P input-cache -N https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar +wget https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar -O input-cache/org.hl7.fhir.publisher.jar echo "Done" From debef4f74a17b25d3180db51c1a2edfd5327ee6e Mon Sep 17 00:00:00 2001 From: patrick-werner Date: Wed, 11 Sep 2019 17:19:55 -0400 Subject: [PATCH 4/5] test if wget is available --- _updatePublisher.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_updatePublisher.sh b/_updatePublisher.sh index 74ddee6..2e3f07b 100755 --- a/_updatePublisher.sh +++ b/_updatePublisher.sh @@ -1,5 +1,9 @@ #!/bin/bash set -e +if ! type "wget" > /dev/null; then + echo "ERROR: Script needs wget to download latest IG Publisher. Please install wget." + exit 1 +fi echo "Downloading most recent publisher - it's ~100 MB, so this may take a bit" wget https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar -O input-cache/org.hl7.fhir.publisher.jar echo "Done" From 91a388b08a7726383c354d9592f63c09d7a04048 Mon Sep 17 00:00:00 2001 From: patrick-werner Date: Thu, 12 Sep 2019 22:20:38 -0400 Subject: [PATCH 5/5] switched the upgradescript wget -> curl --- _updatePublisher.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_updatePublisher.sh b/_updatePublisher.sh index 2e3f07b..55d2c0a 100755 --- a/_updatePublisher.sh +++ b/_updatePublisher.sh @@ -1,9 +1,9 @@ #!/bin/bash set -e -if ! type "wget" > /dev/null; then - echo "ERROR: Script needs wget to download latest IG Publisher. Please install wget." +if ! type "curl" > /dev/null; then + echo "ERROR: Script needs curl to download latest IG Publisher. Please install curl." exit 1 fi echo "Downloading most recent publisher - it's ~100 MB, so this may take a bit" -wget https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar -O input-cache/org.hl7.fhir.publisher.jar +curl https://fhir.github.io/latest-ig-publisher/org.hl7.fhir.publisher.jar -o input-cache/org.hl7.fhir.publisher.jar --create-dirs echo "Done"