summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-12-11 20:44:21 +0100
committerlassulus <lassulus@lassul.us>2019-12-11 20:44:21 +0100
commit31efe677b40fe491c988d50f96b59b1b7e2d46f7 (patch)
treed5ccb552feeef4893831db2eccdc3f7069806bf7 /bin
Initial commitHEADmaster
Diffstat (limited to 'bin')
-rwxr-xr-xbin/grib2json5
-rwxr-xr-xbin/grib2json.cmd4
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% %*