summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh')
-rwxr-xr-xMaster/texmf-dist/scripts/tlcockpit/tlcockpit.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh
new file mode 100755
index 00000000000..734ffe54c3c
--- /dev/null
+++ b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+kernel=`uname -s`
+if test "${kernel#*CYGWIN}" != "$kernel"
+then
+ jarpath=`cygpath -w $(kpsewhich --progname=tlcockpit --format=texmfscripts tlcockpit.jar)`
+else
+ jarpath=`kpsewhich --progname=tlcockpit --format=texmfscripts tlcockpit.jar`
+fi
+exec java -jar "$jarpath" "$@"