summaryrefslogtreecommitdiff
path: root/default.svg.do
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-08-03 12:49:29 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-08-03 12:49:29 +0200
commit230688a0b842cf57b316a7ba62910ca387afbce7 (patch)
tree6367087d25147335972cacf19bd34fb868863fd7 /default.svg.do
parent7170488c37105691f4a690cbcf1e43000d779b59 (diff)
downloaddirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar
dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.gz
dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.bz2
dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.tar.xz
dirty-haskell.org-230688a0b842cf57b316a7ba62910ca387afbce7.zip
Start of complete rewrite to switch to hakyll
Diffstat (limited to 'default.svg.do')
-rw-r--r--default.svg.do28
1 files changed, 0 insertions, 28 deletions
diff --git a/default.svg.do b/default.svg.do
deleted file mode 100644
index 76a3b0b..0000000
--- a/default.svg.do
+++ /dev/null
@@ -1,28 +0,0 @@
1redo-ifchange $2.expr build/preview/preview.sty build/preview/prtightpage.def build/preamble.tex
2INPUT=$(realpath $2.expr)
3TDIR=$(mktemp -d --tmpdir=/tmp)
4PREAMBLE=$(realpath build/preamble.tex)
5
6pushd $(dirname $2) >/dev/null
7TEXDIR=$(pwd)
8popd >/dev/null
9
10cp build/preview/preview.sty build/preview/prtightpage.def $TDIR
11
12pushd $TDIR >/dev/null
13latex -jobname=image >/dev/null <<EOF
14\input{$PREAMBLE}
15\begin{document}
16\begin{preview}
17\(
18\input{$INPUT}
19\)
20\end{preview}
21\end{document}
22EOF
23
24dvisvgm --exact --no-fonts $TDIR/image.dvi 2>&1 | sed -e '/depth=/!d;s/^.*depth=\(.*\)$/\1/' > $TEXDIR/vertical-align
25cat $TDIR/image.svg
26popd >/dev/null
27
28rm -rf $TDIR \ No newline at end of file