summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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