Skip to content

Commit f38f126

Browse files
committed
Use lua init script
Two -cnf-lines do not work. Add a lua init script instead, which sets shell restricted and the git command.
1 parent 23fc77d commit f38f126

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ CONTRIBUTION = gitinfo-lua
22
VERSION = $(shell git describe --tags --always)
33
FILE = ${CONTRIBUTION}-${VERSION}.tar.gz
44
MANUAL = doc/${CONTRIBUTION}
5-
CNF_LINE = -cnf-line TEXMFHOME={${CURDIR},$(shell kpsewhich --var-value TEXMFHOME)} -cnf-line shell_escape_commands=git
6-
COMPILER = lualatex --shell-restricted --interaction=nonstopmode $(CNF_LINE)
5+
CNF_LINE = -cnf-line TEXMFHOME={${CURDIR},$(shell kpsewhich --var-value TEXMFHOME)}
6+
COMPILER = lualatex --lua=../scripts/gitinfo-lua-init.lua --interaction=nonstopmode $(CNF_LINE)
77
RM = rm
88
ifeq ($(OS),Windows_NT)
99
RM = del

scripts/gitinfo-lua-init.lua

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
texconfig = texconfig or require('texconfig')
3+
4+
texconfig.shell_escape = 'p'
5+
texconfig.shell_escape_commands = 'git'

0 commit comments

Comments
 (0)