summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk')
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/texosquery/texosquery-jre5.sh8
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh8
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/texosquery/texosquery.sh8
3 files changed, 21 insertions, 3 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre5.sh b/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre5.sh
index e841a0ea7d2..a72924f360a 100755
--- a/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre5.sh
+++ b/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre5.sh
@@ -1,5 +1,11 @@
#!/bin/sh
-jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery-jre5.jar`
+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`
+fi
java -jar "$jarpath" "$@"
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 d13f8eeff5a..f68a09c8660 100755
--- a/Build/source/texk/texlive/linked_scripts/texosquery/texosquery-jre8.sh
+++ b/Build/source/texk/texlive/linked_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" "$@"
diff --git a/Build/source/texk/texlive/linked_scripts/texosquery/texosquery.sh b/Build/source/texk/texlive/linked_scripts/texosquery/texosquery.sh
index db9f8addfab..d230c4c1999 100755
--- a/Build/source/texk/texlive/linked_scripts/texosquery/texosquery.sh
+++ b/Build/source/texk/texlive/linked_scripts/texosquery/texosquery.sh
@@ -1,5 +1,11 @@
#!/bin/sh
-jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery.jar`
+kernel=`uname -s`
+if test "${kernel#*CYGWIN}" != "$kernel"
+then
+ jarpath=`cygpath -w $(kpsewhich --progname=texosquery --format=texmfscripts texosquery.jar)`
+else
+ jarpath=`kpsewhich --progname=texosquery --format=texmfscripts texosquery.jar`
+fi
java -jar "$jarpath" "$@"