From 917d88e18565c63eafc33a5257b48626365dddef Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 4 Feb 2020 22:21:35 +0000 Subject: texosquery (4feb20) git-svn-id: svn://tug.org/texlive/trunk@53676 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texosquery/texosquery-jre5.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/scripts/texosquery/texosquery-jre5.sh') diff --git a/Master/texmf-dist/scripts/texosquery/texosquery-jre5.sh b/Master/texmf-dist/scripts/texosquery/texosquery-jre5.sh index a72924f360a..73edbe03205 100755 --- a/Master/texmf-dist/scripts/texosquery/texosquery-jre5.sh +++ b/Master/texmf-dist/scripts/texosquery/texosquery-jre5.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-jre5.jar)` -else - jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery-jre5.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 -jar "$jarpath" "$@" -- cgit v1.2.3