summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-12-23 19:28:37 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-12-23 19:28:37 +0000
commit19d0931e9c236191f03a579148a43b42637debba (patch)
tree46232d4e530e2e16dc0e0c49eedcf38712a535b2
parent0be6c18bce52e3b0bcfcf087a163b975bede8c23 (diff)
makezip: minor fixes
- preserve spec name and date in REVISION/REVISION-DATE - clean out listings directory before packing Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/branches/v1.0@466 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rwxr-xr-xmakeall.sh1
-rwxr-xr-xmakediffall.sh1
-rwxr-xr-xmaketex.sh1
-rwxr-xr-xmakezip.sh8
4 files changed, 11 insertions, 0 deletions
diff --git a/makeall.sh b/makeall.sh
index efa6c69..20f568e 100755
--- a/makeall.sh
+++ b/makeall.sh
@@ -1,4 +1,5 @@
export SPECDOC=${SPECDOC:-`cat REVISION`}
+export DATESTR=${DATESTR:-`cat REVISION-DATE`}
./makezip.sh
./makehtml.sh
./makepdf.sh
diff --git a/makediffall.sh b/makediffall.sh
index 813dc36..51a6ec6 100755
--- a/makediffall.sh
+++ b/makediffall.sh
@@ -1,4 +1,5 @@
export SPECDOC=${SPECDOC:-`cat REVISION`}
+export DATESTR=${DATESTR:-`cat REVISION-DATE`}
./makezip.sh
./makehtml.sh
./makediffhtml.sh
diff --git a/maketex.sh b/maketex.sh
index 1fee32b..c3b458f 100755
--- a/maketex.sh
+++ b/maketex.sh
@@ -1,2 +1,3 @@
export SPECDOC=${SPECDOC:-`cat REVISION`}-tex
+export DATESTR=${DATESTR:-`cat REVISION-DATE`}
./makezip.sh
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/*