diff options
author | lassulus <lassulus@lassul.us> | 2019-12-11 20:44:21 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-12-11 20:44:21 +0100 |
commit | 31efe677b40fe491c988d50f96b59b1b7e2d46f7 (patch) | |
tree | d5ccb552feeef4893831db2eccdc3f7069806bf7 /bin |
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/grib2json | 5 | ||||
-rwxr-xr-x | bin/grib2json.cmd | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/grib2json b/bin/grib2json new file mode 100755 index 0000000..c458057 --- /dev/null +++ b/bin/grib2json @@ -0,0 +1,5 @@ +#!/bin/sh +#set -x +LIB_DIR=$(dirname "$0")/../lib +LAUNCH_JAR=$LIB_DIR/grib2json-*.jar +$JAVA_HOME/bin/java -Xmx512M -jar $LAUNCH_JAR $@ diff --git a/bin/grib2json.cmd b/bin/grib2json.cmd new file mode 100755 index 0000000..788abb5 --- /dev/null +++ b/bin/grib2json.cmd @@ -0,0 +1,4 @@ +@echo off +set LIB_DIR="%~dp0..\lib" +for /f "delims=X" %%i in ('dir /b %LIB_DIR%\grib2json-*.jar') do set LAUNCH_JAR=%LIB_DIR%\%%i +"%JAVA_HOME%\bin\java.exe" -Xmx512M -jar %LAUNCH_JAR% %* |