aboutsummaryrefslogtreecommitdiffstats
path: root/makediff.sh
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2019-03-25 21:51:58 -0400
committerMichael S. Tsirkin <mst@redhat.com>2019-03-25 21:51:58 -0400
commit751cb574775a2a043e760f0beff6edaeb35044c8 (patch)
tree97744046fb12c61d04723fde82f0ab1ceb13624d /makediff.sh
parent11b8efeb63d9d81b6ccc1f4669ca21e08efa4ec5 (diff)
downloadvirtio-spec-751cb574775a2a043e760f0beff6edaeb35044c8.tar.gz
scripts: ability to diff with multiple versions
Useful for releases with non-material changes. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'makediff.sh')
-rwxr-xr-xmakediff.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/makediff.sh b/makediff.sh
index 4d48519..ef538c5 100755
--- a/makediff.sh
+++ b/makediff.sh
@@ -2,6 +2,7 @@
#this way they don't appear in the diff
export SPECDOC=${SPECDOC:-`cat REVISION`}
export DATESTR=${DATESTR:-`cat REVISION-DATE`}
+export FROMVERSION=${FROMVERSION:-`cat DIFFVERSION`}
#make pdf diff using latexpand and latexdiff-fast
#preamble in diffpreamble.tex
@@ -9,7 +10,7 @@ export DATESTR=${DATESTR:-`cat REVISION-DATE`}
MAIN=$1
PATH=.:${PATH}
cur="$PWD"
-oldrev=`git rev-list -1 tags/v1.0-cs04`
+oldrev=`git rev-list -1 tags/${FROMVERSION}`
newrev=`git rev-list -1 HEAD`
rm -fr old new
git clone $PWD old