From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- support/arara/scripts/arara.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 support/arara/scripts/arara.sh (limited to 'support/arara/scripts/arara.sh') diff --git a/support/arara/scripts/arara.sh b/support/arara/scripts/arara.sh new file mode 100644 index 0000000000..197228f491 --- /dev/null +++ b/support/arara/scripts/arara.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Public domain. Originally written by Norbert Preining and Karl Berry, 2018. +# Note from Paulo: this script provides better Cygwin support than our original +# approach, so the team decided to use it as a proper wrapper for arara as well. + +scriptname=`basename "$0"` +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 + +exec java -jar "$jarpath" "$@" -- cgit v1.2.3