Skip to content

Commit

Permalink
Merge pull request #1349 from rpspringuel/develop
Browse files Browse the repository at this point in the history
TeXShop engine modifications
rpspringuel authored Apr 15, 2017
2 parents 4dd27b1 + 2f01dda commit 229aac3
Showing 4 changed files with 24 additions and 3 deletions.
8 changes: 6 additions & 2 deletions contrib/TeXShop/LuaLaTeX+se.engine
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 8 additions & 0 deletions contrib/TeXShop/LuaTeX+se.engine
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion contrib/TeXShop/Makefile.am
Original file line number Diff line number Diff line change
@@ -15,4 +15,4 @@
# You should have received a copy of the GNU General Public License
# along with Gregorio. If not, see <http://www.gnu.org/licenses/>.

EXTRA_DIST = auto-configure.command LuaLaTeX+se.engine
EXTRA_DIST = auto-configure.command LuaLaTeX+se.engine LuaTeX+se.engine
9 changes: 9 additions & 0 deletions contrib/TeXShop/auto-configure.command
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 229aac3

Please sign in to comment.