From 8648faa6c224be177461fc7e93155ceabf8f6ca5 Mon Sep 17 00:00:00 2001 From: Viktor Kleen Date: Tue, 3 Mar 2015 05:55:10 +0000 Subject: fix build failures with full redo --- default.svg.do | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'default.svg.do') diff --git a/default.svg.do b/default.svg.do index 403fd2d..76a3b0b 100644 --- a/default.svg.do +++ b/default.svg.do @@ -1,12 +1,17 @@ redo-ifchange $2.expr build/preview/preview.sty build/preview/prtightpage.def build/preamble.tex INPUT=$(realpath $2.expr) TDIR=$(mktemp -d --tmpdir=/tmp) +PREAMBLE=$(realpath build/preamble.tex) -cp build/preview/preview.sty build/preview/prtightpage.def build/preamble.tex $TDIR +pushd $(dirname $2) >/dev/null +TEXDIR=$(pwd) +popd >/dev/null -pushd $TDIR -latex -jobname=image </dev/null +latex -jobname=image >/dev/null <&1 | sed -e '/depth=/!d;s/^.*depth=\(.*\)$/\1/' > $(dirname $2)/vertical-align +dvisvgm --exact --no-fonts $TDIR/image.dvi 2>&1 | sed -e '/depth=/!d;s/^.*depth=\(.*\)$/\1/' > $TEXDIR/vertical-align +cat $TDIR/image.svg +popd >/dev/null + rm -rf $TDIR \ No newline at end of file -- cgit v1.2.3