summaryrefslogtreecommitdiff
path: root/makediffpdf.sh
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-26 12:35:17 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-26 12:35:17 +0000
commitccac3cdd0b8ee5d59618c52fa67006037042441f (patch)
treee6690766cc1e00b01bcf83703d4b086a303bb460 /makediffpdf.sh
parentfc27ea190b89ed5a654f9ccc326caff2558dc56f (diff)
script to create html diff as well
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@392 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'makediffpdf.sh')
-rwxr-xr-xmakediffpdf.sh37
1 files changed, 1 insertions, 36 deletions
diff --git a/makediffpdf.sh b/makediffpdf.sh
index cb84d07..c7864df 100755
--- a/makediffpdf.sh
+++ b/makediffpdf.sh
@@ -1,41 +1,6 @@
#make pdf diff using latexpand and latexdiff-fast
-#preamble in diffpreamble.tex
-#in diff, links are coloured green instead of blue
-PATH=.:${PATH}
-cur="$PWD"
-rm -fr old new
-git clone $PWD old
-cd "${cur}/old"
-git checkout ec1ffbf27a8f0a06ca65cd498a69c7f89bd97dc1
-mv specvars.tex specvars-orig.tex
-#make links green to avoid confusion
-sed s/blue/pinegreen/ specvars-orig.tex > specvars.tex
+./makediff.sh virtio.tex
SPECDOC=${SPECDOC:-`cat REVISION`}
-./make-setup-generated.sh "$SPECDOC"
-#wget http://www.ctan.org/pkg/latexpand
-#chmod +x latexpand
-latexpand virtio.tex -o flat.tex
-cd "${cur}"
-git clone $PWD new
-cd "${cur}/new"
-mv specvars.tex specvars-orig.tex
-#make links green to avoid confusion
-sed s/blue/pinegreen/ specvars-orig.tex > specvars.tex
-SPECDOC=${SPECDOC:-`cat REVISION`}
-./make-setup-generated.sh "$SPECDOC"
-latexpand virtio.tex -o flat.tex
-cd "${cur}"
-# latexdiff does not do diffs within footnotes
-# adding space make it not realize the text is a footnote,
-# and treat it normally
-sed 's/\\footnote{/\\footnote {/' old/flat.tex > old/flat-fixed.tex
-sed 's/\\footnote{/\\footnote {/' new/flat.tex > new/flat-fixed.tex
-#cp old/flat.tex old/flat-fixed.tex
-#cp new/flat.tex new/flat-fixed.tex
-#wget http://mirror.math.ku.edu/tex-archive/support/latexdiff/latexdiff-fast
-#chmod +x latexdiff-fast
-latexdiff-fast --append-safecmd=field --ignore-warnings -p diffpreamble.tex old/flat-fixed.tex new/flat-fixed.tex > virtio-diff.tex
-perl -pi fixupdiff.pl virtio-diff.tex
SPECDOC="${SPECDOC}-diff"
rm $SPECDOC.aux $SPECDOC.pdf $SPECDOC.out
xelatex --jobname $SPECDOC virtio-diff.tex