diff --git a/contrib/TeXShop/LuaLaTeX+se.engine b/contrib/TeXShop/LuaLaTeX+se.engine index a1fb7c72d..2c2642dd8 100755 --- a/contrib/TeXShop/LuaLaTeX+se.engine +++ b/contrib/TeXShop/LuaLaTeX+se.engine @@ -1,4 +1,8 @@ -#!/bin/tcsh +#!/bin/bash -set path= ($path /usr/texbin /usr/local/bin) +if [[ -n ${2:+x} ]]; then + echo "I will add $2 to the input path" + export TEXINPUTS="$2//:" + export LUAINPUTS="$2//:" +fi lualatex --shell-escape -file-line-error -synctex=1 "$1" diff --git a/contrib/TeXShop/LuaTeX+se.engine b/contrib/TeXShop/LuaTeX+se.engine new file mode 100755 index 000000000..6da782ed7 --- /dev/null +++ b/contrib/TeXShop/LuaTeX+se.engine @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ -n ${2:+x} ]]; then + echo "I will add $2 to the input path" + export TEXINPUTS="$2//:" + export LUAINPUTS="$2//:" +fi +luatex --shell-escape -file-line-error -synctex=1 "$1" diff --git a/contrib/TeXShop/Makefile.am b/contrib/TeXShop/Makefile.am index 9ca1bdb5f..60a7212ad 100644 --- a/contrib/TeXShop/Makefile.am +++ b/contrib/TeXShop/Makefile.am @@ -15,4 +15,4 @@ # You should have received a copy of the GNU General Public License # along with Gregorio. If not, see . -EXTRA_DIST = auto-configure.command LuaLaTeX+se.engine +EXTRA_DIST = auto-configure.command LuaLaTeX+se.engine LuaTeX+se.engine diff --git a/contrib/TeXShop/auto-configure.command b/contrib/TeXShop/auto-configure.command index 758b3d010..065871932 100755 --- a/contrib/TeXShop/auto-configure.command +++ b/contrib/TeXShop/auto-configure.command @@ -29,6 +29,15 @@ else echo "Please try running the Gregorio intaller again" exit 1 fi +SOURCE="/Users/Shared/Gregorio/contrib/TeXShop/LuaTeX+se.engine" +if [ -e "$SOURCE" ]; then + echo "Copying LuaTeX+se.engine into TeXShop configuration" + cp "$SOURCE" "$ENGINEDIR" +else + echo "Cannot find LuaTeX+se.engine" + echo "Please try running the Gregorio intaller again" + exit 1 +fi echo "Configuration complete" exit 0