diff options
Diffstat (limited to 'Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh b/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh index f68a09c8660..77411bcf87d 100755 --- a/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh +++ b/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh @@ -1,11 +1,15 @@ #!/bin/sh -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` +scriptname=`basename "$0" .sh` +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 + java -Djava.locale.providers=CLDR,JRE -jar "$jarpath" "$@" |