Skip to content

Commit

Permalink
Updated refresh scripots
Browse files Browse the repository at this point in the history
  • Loading branch information
brynrhodes committed May 5, 2023
1 parent 5506a01 commit 19151c1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _refresh.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@ECHO OFF
SET tooling_jar=tooling-2.3.0-SNAPSHOT-jar-with-dependencies.jar
SET tooling_jar=tooling-cli-2.4.0.jar
SET input_cache_path=%~dp0input-cache
SET ig_ini_path=%~dp0ig.ini

Expand Down
2 changes: 1 addition & 1 deletion _refresh.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#DO NOT EDIT WITH WINDOWS
tooling_jar=tooling-2.3.0-SNAPSHOT-jar-with-dependencies.jar
tooling_jar=tooling-cli-2.4.0.jar
input_cache_path=./input-cache
ig_ini_path=$PWD/ig.ini

Expand Down
6 changes: 3 additions & 3 deletions _updateCQFTooling.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@ECHO OFF

SET "dlurl=https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.opencds.cqf&a=tooling&v=2.3.0-SNAPSHOT&c=jar-with-dependencies"
SET tooling_jar=tooling-2.3.0-SNAPSHOT-jar-with-dependencies.jar
SET "dlurl=https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=org.opencds.cqf&a=tooling-cli&v=2.4.0"
SET tooling_jar=tooling-cli-2.4.0.jar
SET input_cache_path=%~dp0input-cache\
SET skipPrompts=false
IF "%~1"=="/f" SET skipPrompts=true
Expand Down Expand Up @@ -52,7 +52,7 @@ IF "%skipPrompts%"=="false" (
GOTO:done

:download
ECHO Downloading most recent refresh to %jarlocationname% - it's ~70 MB, so this may take a bit
ECHO Downloading most recent refresh to %jarlocationname% - it's ~110 MB, so this may take a bit

FOR /f "tokens=4-5 delims=. " %%i IN ('ver') DO SET VERSION=%%i.%%j
IF "%version%" == "10.0" GOTO win10
Expand Down
13 changes: 6 additions & 7 deletions _updateCQFTooling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
#DO NOT EDIT WITH WINDOWS
#exit 1

r=snapshots
r=releases
g=org.opencds.cqf
a=tooling
v=2.3.0-SNAPSHOT
c=jar-with-dependencies
a=tooling-cli
v=2.4.0

dlurl='https://oss.sonatype.org/service/local/artifact/maven/redirect?r='${r}'&g='${g}'&a='${a}'&v='${v}'&c='${c}''
dlurl='https://oss.sonatype.org/service/local/artifact/maven/redirect?r='${r}'&g='${g}'&a='${a}'&v='${v}''

echo ${dlurl}

input_cache_path=./input-cache/
tooling_jar=tooling-2.3.0-SNAPSHOT-jar-with-dependencies.jar
tooling_jar=tooling-cli-2.4.0.jar

set -e
if ! type "curl" > /dev/null; then
Expand Down Expand Up @@ -53,7 +52,7 @@ fi

read -r -p "$message" response
if [[ "$response" =~ ^([yY])$ ]]; then
echo "Downloading most recent tooling to $jarlocationname - it's ~170 MB, so this may take a bit"
echo "Downloading most recent tooling to $jarlocationname - it's ~110 MB, so this may take a bit"
# wget "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/opencds/cqf/tooling/1.0-SNAPSHOT/tooling-1.0-20200107.163002-6-jar-with-dependencies.jar" -O "$jarlocation"
curl $dlurl -L -o "$jarlocation" --create-dirs
echo "Download complete."
Expand Down

0 comments on commit 19151c1

Please sign in to comment.