diff options
author | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-12-08 12:30:07 +0000 |
---|---|---|
committer | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2013-12-08 12:30:07 +0000 |
commit | f53432cbd7f9b9b08f63e26718bef45d8496ae5e (patch) | |
tree | fa5d1fee4cf74fc31ba85e391633726cfc414e0e | |
parent | 07675d43985e02ab23df885a954b5da2d9c8b3d7 (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
-rwxr-xr-x | makeall.sh | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |