summaryrefslogtreecommitdiff
path: root/makeall.sh
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-08 12:30:07 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-08 12:30:07 +0000
commitf53432cbd7f9b9b08f63e26718bef45d8496ae5e (patch)
treefa5d1fee4cf74fc31ba85e391633726cfc414e0e /makeall.sh
parent07675d43985e02ab23df885a954b5da2d9c8b3d7 (diff)
makeall.sh: support generating archive from svn
Not everyone's using git ... Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@161 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'makeall.sh')
-rwxr-xr-xmakeall.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/makeall.sh b/makeall.sh
index dbdfd73..9f17123 100755
--- a/makeall.sh
+++ b/makeall.sh
@@ -1,6 +1,18 @@
export SPECDOC=${SPECDOC:-virtio-v1.0-wd01}
rm -f $SPECDOC
-git archive --format=zip --prefix=tex/ -o $SPECDOC.zip HEAD
+if test -d .git; then
+ git archive --format=zip --prefix=tex/ -o $SPECDOC.zip HEAD
+elif test -d .svn; then
+ rm -fr export-from-svn
+ mkdir -p export-from-svn
+ svn export . export-from-svn/tex
+ cd export-from-svn/
+ zip ../$SPECDOC.zip tex/
+ cd ..
+else
+ echo Neither .git nor .svn found.
+ echo Falling back to generated list.
+fi
zip -d $SPECDOC.zip tex/.gitattributes
./makehtml.sh
./makepdf.sh