blob: 168c9f79ae45e397573f319e688e8e3086ef75d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#force revision and date in environment
#this way they don't appear in the diff
export SPECDOC=${SPECDOC:-`cat REVISION`}
export DATESTR=${DATESTR:-`cat REVISION-DATE`}
#make pdf diff using latexpand and latexdiff-fast
#preamble in diffpreamble.tex
#in diff, links are coloured green instead of blue
MAIN=$1
PATH=.:${PATH}
cur="$PWD"
oldrev=`git rev-list -1 origin/tags/v1.0-cs01`
rm -fr old new
git clone $PWD old
cd "${cur}/old"
git checkout $oldrev
##suppress diff of title
#git cherry-pick 0adee486ab987c3e98c5f31b51cc963d8bb6fff4
##suppress diff of changelog
#git cherry-pick a41f3813a748e7d279cb6eb82f3c0afde4a3243a
#git cherry-pick fbfb402e69cdd9279c44b7684612e6f81df99e6d
#git cherry-pick 9f240fe0e718bf9b1e502e02916db9d8fede304b
#git cherry-pick a02605f9945f450ecaadf86736741de2e2c2e788
#git cherry-pick 175e797beede8aea840102bee9b70bb08190153d
git cherry-pick d858fdbad24c7e8c90552ecc1f4e963c378dadf2
git cherry-pick fc666b6f4b9152c9eb62c48ae8a402d4223de2c4
git cherry-pick 7f85bbb585e0d63f7ac8ff1a3ac22fc3370c50ac
git cherry-pick ae8f2dd
git cherry-pick bf266a7
#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"
#wget http://www.ctan.org/pkg/latexpand
#chmod +x latexpand
latexpand $MAIN -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 $MAIN -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 --config \
"FLOATENV=(?:figure|longtable|table|tabular|plate)[\w\d*@]*" \
--append-safecmd=field --append-textcmd=mmioreg --ignore-warnings -p diffpreamble.tex old/flat-fixed.tex new/flat-fixed.tex > virtio-diff.tex
#perl -pi fixupdiff.pl virtio-diff.tex
|