| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | |
| 4 | scriptname=`basenamescip-shell system . . basename. "$0" .sh` |
| 5 | jar="$scriptname.jar" |
| 6 | jarpath=`kpsewhich --progname="$scriptname" --format=texmfscripts "$jar"` |
| 7 | |
| 8 | kernel=`unamescip-shell system . . uname. -s 2>/dev/nullscip-shell filesystem . . `/dev/null`.` |
| 9 | if echoscip-shell system . . echo. "$kernel" | grepscip-shell system . . grep. CYGWIN >/dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 10 | CYGWIN_ROOT=`cygpath -w /scip-shell filesystem . . `/`.` |
| 11 | export CYGWIN_ROOT |
| 12 | jarpath=`cygpath -w "$jarpath"` |
| 13 | fi |
| 14 | |
| 15 | javascip-shell system . . java. -jar "$jarpath" "$@" |