Merge branch 'develop' into features/JAL-518_justify_seqs_in_region
[jalview.git] / utils / eclipse / jalview
diff --git a/utils/eclipse/jalview b/utils/eclipse/jalview
new file mode 100755 (executable)
index 0000000..3c986a1
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+if command -v tput 2>&1 >/dev/null; then
+  COLUMNS=$(tput cols) 2>/dev/null
+elif command -v stty 2>&1 >/dev/null; then
+  COLUMNS=$(stty size | cut -d" " -f2) 2>/dev/null
+elif command -v resize 2>&1 >/dev/null; then
+  COLUMNS=$(resize -u | grep COLUMNS= | sed -e 's/.*=//;s/;//') 2>/dev/null
+fi
+
+java "-DCONSOLEWIDTH=${COLUMNS}" -cp "./bin/main:./j11lib/*:./resources:./help" jalview.bin.Launcher "${@}"