summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2018-10-06 08:23:40 +0000
committerNorbert Preining <preining@logic.at>2018-10-06 08:23:40 +0000
commit7b0783b59d3e5ae474862fe9a3b6df60c4e4bf06 (patch)
treea29cfdeac8f2409d4acd8b516299995e2da1c3d2 /Master/texmf-dist/scripts
parentab3121ce87e3466683261ae386429ab3138c775b (diff)
update tlcockpit 1.0
git-svn-id: svn://tug.org/texlive/trunk@48838 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rw-r--r--Master/texmf-dist/scripts/tlcockpit/tlcockpit.jarbin13031610 -> 16591125 bytes
-rwxr-xr-xMaster/texmf-dist/scripts/tlcockpit/tlcockpit.sh18
2 files changed, 12 insertions, 6 deletions
diff --git a/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar
index 8cc6fce91cf..4ccd7cb962e 100644
--- a/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar
+++ b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.jar
Binary files differ
diff --git a/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh
index 734ffe54c3c..56333fb47b4 100755
--- a/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh
+++ b/Master/texmf-dist/scripts/tlcockpit/tlcockpit.sh
@@ -1,10 +1,16 @@
#!/bin/sh
+# Public domain. Originally written by Norbert Preining and Karl Berry, 2018.
-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`
+scriptname=`basename "$0"`
+jar="$scriptname.jar"
+jarpath=`kpsewhich --progname="$scriptname" --format=texmfscripts "$jar"`
+
+kernel=`uname -s 2>/dev/null`
+if echo "$kernel" | grep CYGWIN >/dev/null; then
+ CYGWIN_ROOT=`cygpath -w /`
+ export CYGWIN_ROOT
+ jarpath=`cygpath -w "$jarpath"`
fi
+
exec java -jar "$jarpath" "$@"
+