summaryrefslogtreecommitdiff
path: root/makezip.sh
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2015-02-15 21:09:53 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2015-02-15 21:09:53 +0000
commit00c5a092c3a19c39f9645a609cdcb2ea1795a224 (patch)
treefb18131f27d97767eea4f9b8c54232403e53d12a /makezip.sh
parent897a5d24367bc97f96b073113018905be7411e96 (diff)
parentf64afc0564b5f9970b65aa81f72f258eaad15bf2 (diff)
Merge remote-tracking branch 'origin/v1.0'
Conflicts: content.tex makediff.sh git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/trunk@477 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'makezip.sh')
-rwxr-xr-xmakezip.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/makezip.sh b/makezip.sh
index de423ea..de52abf 100755
--- a/makezip.sh
+++ b/makezip.sh
@@ -1,4 +1,5 @@
export SPECDOC=${SPECDOC:-`cat REVISION`}
+export DATESTR=${DATESTR:-`cat REVISION-DATE`}
rm -f $SPECDOC.zip
if test -d .git; then
git archive --format=zip --prefix=tex/ -o $SPECDOC.zip HEAD
@@ -14,6 +15,13 @@ else
echo Falling back to generated list.
fi
zip -d $SPECDOC.zip tex/.gitattributes
+rm -fr listings
mkdir -p listings
cp virtio-ring.h listings/virtio_ring.h
zip $SPECDOC.zip listings/virtio_ring.h
+rm -fr tmpfilesforzip
+mkdir -p tmpfilesforzip/tex
+echo "$SPECDOC" > tmpfilesforzip/tex/REVISION
+echo "$DATESTR" > tmpfilesforzip/tex/REVISION-DATE
+cd tmpfilesforzip
+zip ../$SPECDOC.zip tex/*