summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texosquery/texosquery-jre8.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/texosquery/texosquery-jre8.sh')
-rwxr-xr-xMaster/texmf-dist/scripts/texosquery/texosquery-jre8.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/texosquery/texosquery-jre8.sh b/Master/texmf-dist/scripts/texosquery/texosquery-jre8.sh
index d13f8eeff5a..f68a09c8660 100755
--- a/Master/texmf-dist/scripts/texosquery/texosquery-jre8.sh
+++ b/Master/texmf-dist/scripts/texosquery/texosquery-jre8.sh
@@ -1,5 +1,11 @@
#!/bin/sh
-jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery-jre8.jar`
+kernel=`uname -s`
+if test "${kernel#*CYGWIN}" != "$kernel"
+then
+ jarpath=`cygpath -w $(kpsewhich --progname=texosquery --format=texmfscripts texosquery-jre8.jar)`
+else
+ jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery-jre8.jar`
+fi
java -Djava.locale.providers=CLDR,JRE -jar "$jarpath" "$@"