summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texosquery/texosquery.sh
blob: 73edbe0320575f75ca3ac0889a25d7ec97d63556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh


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" "$@"