separate archive for pdf docs;
authorwenzelm
Fri, 28 May 1999 18:00:33 +0200
changeset 6748 f1f70344b749
parent 6747 cee5adcc1f5c
child 6749 21f1645f0517
separate archive for pdf docs;
Admin/makedist
--- a/Admin/makedist	Fri May 28 17:59:22 1999 +0200
+++ b/Admin/makedist	Fri May 28 18:00:33 1999 +0200
@@ -92,6 +92,7 @@
 
 mkdir -p $DISTBASE || fail "Unable to create distribution base dir $DISTBASE!"
 [ -e $DISTBASE/$DISTNAME ] && fail "$DISTBASE/$DISTNAME already exists!"
+[ -e $DISTBASE/pdf/$DISTNAME ] && fail "$DISTBASE/pdf/$DISTNAME already exists!"
 
 
 # export from repository
@@ -167,18 +168,22 @@
 chown -R $LOGNAME:isabelle $DISTNAME
 chmod -R u+w $DISTNAME
 
-if type -path gtar
-then
-  gtar cf $DISTNAME.tar $DISTNAME
-else
-  tar cf $DISTNAME.tar $DISTNAME
-fi
+TAR=tar
+type -path gtar >/dev/null && TAR=gtar
 
-UNPACKED_SIZE=$[ $(wc -c <$DISTNAME.tar) / 1024 ]
+mkdir -p pdf/$DISTNAME/doc
+mv $DISTNAME/doc/*.pdf pdf/$DISTNAME/doc
+
+$TAR cf $DISTNAME.tar $DISTNAME
+( cd pdf; $TAR cf ../${DISTNAME}_pdf.tar $DISTNAME; )
+
+UNPACKED_SIZE=$[ $(cat $DISTNAME.tar ${DISTNAME}_pdf.tar | wc -c) / 1024 ]
 
 gzip $DISTNAME.tar
+gzip ${DISTNAME}_pdf.tar
 
 PACKED_SIZE=$[ $(wc -c <$DISTNAME.tar.gz) / 1024 ]
+PACKED_SIZE_PDF=$[ $(wc -c <${DISTNAME}_pdf.tar.gz) / 1024 ]
 
 
 # prepare dist index.html
@@ -186,6 +191,7 @@
 perl -pi -e \
  "s/{ISABELLE}/$DISTNAME/g; \
   s/{PACKED_SIZE}/$PACKED_SIZE/g; \
+  s/{PACKED_SIZE_PDF}/$PACKED_SIZE_PDF/g; \
   s/{UNPACKED_SIZE}/$UNPACKED_SIZE/g; \
   s/{AUTHOR}/$LOGNAME/g; \
   s/{DATE}/$DATE/g;" \