]> granicus.if.org Git - docbook-dsssl/commitdiff
Changed to store uncompressed snapshot contents on build host
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 8 Mar 2006 12:08:37 +0000 (12:08 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 8 Mar 2006 12:08:37 +0000 (12:08 +0000)
instead of uploading to remote host (SF web server). (Because
uncompressed docbook-xsl distro now runs to 20Mb, which cuts
pretty deep into the 100Mb disk-space quota for the project.) I
set up Apache rewrites in .htaccess files in the snapshots/xsl and
snapshots/xsl2 dirs at the SF site to redirect requests for those
to docbook.xml-doc.org/snapshots instead.

releasetools/docbook-build

index 88c6a64ae1e4b600efc3d9eb1442ebcb45479844..45107ca20332364ffa907ea4c61def4394a82917 100755 (executable)
@@ -38,6 +38,8 @@ fi
 
 umask 002
 # set up some defaults
+TAR=tar
+TARFLAGS=P
 SITEUSER=`whoami`
 SITEBASE=/home/groups/d/do/docbook/htdocs/snapshots
 SITEHOST=docbook.sourceforge.net
@@ -294,29 +296,30 @@ EOF
     cat HEADER.txt $TMP/line.tmp LatestChanges > README.txt
     rm $TMP/line.tmp
 
+    # Uncompress tarball to local mirror directory.
+    # Previously, we uploaded and untarred it to the remote host
+    # (sourceforge.net web server), but 100Mb quota limit at
+    # Sourceforge made that a not-very-efficient use of the
+    # project disk space
+    cp $TMP/docbook-$DISTRO*$RELEASEVERSION.tar.bz2 $SITEBASE
+    (umask 002; \
+    cd $SITEBASE; \
+    rm -f docbook-$DISTRO-$RELEASEVERSION.log; \
+    rm -rf $DISTRO; \
+    for tarball in docbook-$DISTRO*$RELEASEVERSION.tar.bz2; do \
+    cat $tarball | bunzip2 | \
+    (cd $TMP; $TAR xf$TARFLAGS -); \
+    done; \
+    mkdir $DISTRO; \
+    cp -pR $TMP/docbook-$DISTRO-$RELEASEVERSION/* $DISTRO; \
+    rm -rf $DISTRO/tools; \
+    rm -rf $DISTRO/RELEASE-NOTES.*;)
+
     scp \
       $TMP/docbook-$DISTRO*$RELEASEVERSION.zip \
-      $TMP/docbook-$DISTRO*$RELEASEVERSION.tar.bz2 \
       README.txt \
       LatestChanges \
       $SITEUSER@$SITEHOST:$SITEBASE
-    ssh -l $SITEUSER $SITEHOST \
-     "( \
-      umask 002; \
-      cd $SITEBASE; \
-      rm -f docbook-$DISTRO-$RELEASEVERSION.log; \
-      rm -rf $DISTRO; \
-      for tarball in docbook-$DISTRO*$RELEASEVERSION.tar.bz2; do \
-      cat \$tarball | bunzip2 | \
-      (cd /tmp; tar xf -); \
-      done; \
-      mkdir $DISTRO; \
-      cp -pR /tmp/docbook-$DISTRO-$RELEASEVERSION/* $DISTRO; \
-      rm -rf /tmp/docbook-$DISTRO-$RELEASEVERSION; \
-      rm -rf docbook-$DISTRO*$RELEASEVERSION.tar.bz2; \
-      rm -rf $DISTRO/tools; \
-      rm -rf $DISTRO/RELEASE-NOTES.* ; \
-      )"
 
     rm -rf $TMP/docbook-$DISTRO*$RELEASEVERSION.tar.bz2
     rm -rf $TMP/docbook-$DISTRO*$RELEASEVERSION.tar.gz