forked from WorldHealthOrganization/smart-example-immz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/patient-registration-resources
- Loading branch information
Showing
87 changed files
with
1,607 additions
and
1,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.