diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-05 18:06:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-05 18:06:25 +0000 |
commit | 9427dfbe861b203ec9fe309a1d590644668f2630 (patch) | |
tree | bf186c58649e74ae6a9c85d0e162b3a392f4e17b /Build/source | |
parent | c59ba5b416eb9d25a88fc9e07cc1d5573867336b (diff) |
bib2gls (10apr19)
git-svn-id: svn://tug.org/texlive/trunk@51008 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/bib2gls/convertgls2bib.sh | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/bib2gls/convertgls2bib.sh b/Build/source/texk/texlive/linked_scripts/bib2gls/convertgls2bib.sh index 3e7370b0ca7..f237f505d5c 100755 --- a/Build/source/texk/texlive/linked_scripts/bib2gls/convertgls2bib.sh +++ b/Build/source/texk/texlive/linked_scripts/bib2gls/convertgls2bib.sh @@ -1,12 +1,15 @@ #!/bin/sh +# Adapted from tlcockpit.sh to ensure the script works with cygwin -kernel=`uname -s` -if test "${kernel#*CYGWIN}" != "$kernel" -then - jarpath=`cygpath -w $(kpsewhich --progname=convertgls2bib --format=texmfscripts convertgls2bib.jar)` -else - jarpath=`kpsewhich --progname=convertgls2bib --format=texmfscripts convertgls2bib.jar` -fi +scriptname=`basename "$0" .sh` +jar="$scriptname.jar" +jarpath=`kpsewhich --progname="$scriptname" --format=texmfscripts "$jar"` -java -jar "$jarpath" "$@" +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" "$@" |