bin: add context-mkiv

This commit is contained in:
xeruf 2022-08-29 13:37:58 +02:00
parent 3d04e42811
commit ef52d65629
2 changed files with 8 additions and 1 deletions

View File

@ -49,7 +49,7 @@ fi
highlight "d :: recursively remove development caches" highlight "d :: recursively remove development caches"
if [[ $1 =~ "d" ]]; then if [[ $1 =~ "d" ]]; then
find -maxdepth 1 \( -name "*.aux" -o -name "*.log" -o -name "*.toc" -o -name "*.out" \) -print -delete find -maxdepth 1 \( -name "*.aux" -o -name "*.log" -o -name "*.t[uo]c" -o -name "*.out" \) -print -delete
find -name "src" -prune -o \ find -name "src" -prune -o \
-type d \( -name 'cache' $(echo $DIRS_GENERATED | sed 's|-x \([^ ]\+\)|-o -name \1|g') \) \ -type d \( -name 'cache' $(echo $DIRS_GENERATED | sed 's|-x \([^ ]\+\)|-o -name \1|g') \) \
-print -exec rm $i -r {} + -prune -print -exec rm $i -r {} + -prune

View File

@ -0,0 +1,7 @@
#!/bin/sh -e
wd=$PWD
mkdir -p /tmp/context
cd /tmp/context
pdffile=${1%.*}.pdf
context --luatex --path=$wd "$wd/$@"
cp -v "/tmp/context/$pdffile" "$wd"