diff options
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% %* |