Skip to content

Commit

Permalink
Merge branch 'main' into refactor/patient-registration-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira authored Oct 22, 2023
2 parents 8428552 + 396f101 commit 10bf541
Show file tree
Hide file tree
Showing 87 changed files with 1,607 additions and 1,298 deletions.
35 changes: 35 additions & 0 deletions _debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@echo off
setlocal enabledelayedexpansion

REM Check the first argument provided to the script
if "%~1"=="jekyll" (
echo Running Jekyll build...
jekyll build -s temp/pages -d output
goto :eof
)

if "%~1"=="clean" (
echo Cleaning up directories...

REM For each directory you want to delete, repeat the following block
if exist ".\input-cache\" (
rmdir /s /q ".\input-cache"
echo Removed: .\input-cache
)
if exist ".\temp\" (
rmdir /s /q ".\temp"
echo Removed: .\temp
)
if exist ".\output\" (
rmdir /s /q ".\output"
echo Removed: .\output
)
if exist ".\template\" (
rmdir /s /q ".\template"
echo Removed: .\template
)
goto :eof
)

REM If none of the conditions matched, print an error message
echo Invalid argument. Please use "debug jekyll" or "debug clean".
54 changes: 27 additions & 27 deletions _genonce.bat
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
@ECHO OFF
SET publisher_jar=publisher.jar
SET input_cache_path=%CD%\input-cache

ECHO Checking internet connection...
PING tx.fhir.org -4 -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
ECHO We're offline...
SET txoption=-tx n/a
GOTO igpublish

:isonline
ECHO We're online
SET txoption=

:igpublish

SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8

IF EXIST "%input_cache_path%\%publisher_jar%" (
JAVA -jar "%input_cache_path%\%publisher_jar%" -ig . %txoption% %*
) ELSE If exist "..\%publisher_jar%" (
JAVA -jar "..\%publisher_jar%" -ig . %txoption% %*
) ELSE (
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
)

PAUSE
@ECHO OFF
SET publisher_jar=publisher.jar
SET input_cache_path=%CD%\input-cache

ECHO Checking internet connection...
PING tx.fhir.org -4 -n 1 -w 1000 | FINDSTR TTL && GOTO isonline
ECHO We're offline...
SET txoption=-tx n/a
GOTO igpublish

:isonline
ECHO We're online
SET txoption=

:igpublish

SET JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8

IF EXIST "%input_cache_path%\%publisher_jar%" (
JAVA -jar "%input_cache_path%\%publisher_jar%" -ig . %txoption% %*
) ELSE If exist "..\%publisher_jar%" (
JAVA -jar "..\%publisher_jar%" -ig . %txoption% %*
) ELSE (
ECHO IG Publisher NOT FOUND in input-cache or parent folder. Please run _updatePublisher. Aborting...
)

PAUSE
Loading

0 comments on commit 10bf541

Please sign in to comment.