diff options
-rwxr-xr-x | makeall.sh | 19 | ||||
-rwxr-xr-x | makezip.sh | 19 |
2 files changed, 20 insertions, 18 deletions
@@ -1,22 +1,5 @@ export SPECDOC=${SPECDOC:-`cat REVISION`} -rm -f $SPECDOC -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 -mkdir -p listings -cp virtio-ring.h listings/virtio_ring.h -zip $SPECDOC.zip listings/virtio_ring.h +./makezip.sh ./makehtml.sh ./makepdf.sh zip $SPECDOC.zip $SPECDOC.pdf diff --git a/makezip.sh b/makezip.sh new file mode 100755 index 0000000..d6cb68f --- /dev/null +++ b/makezip.sh @@ -0,0 +1,19 @@ +export SPECDOC=${SPECDOC:-`cat REVISION`} +rm -f $SPECDOC +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 +mkdir -p listings +cp virtio-ring.h listings/virtio_ring.h +zip $SPECDOC.zip listings/virtio_ring.h |