#1393 [Com]: Download documentation not available

From: Date: Mon, 24 May 2004 15:19:18 +0000
Subject: #1393 [Com]: Download documentation not available
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4085@lists.php.net to get a copy of this message
Edit report at: http://pear.php.net/bugs/bug.php?id=1393&edit=1 ID: 1393 Comment by: danielc at analysisandsolutions dot com Reported By: alister-pear at abulman dot co dot uk Status: Verified Package: Documentation Operating System: na PHP Version: Irrelevant New Comment: Oliver, your patch misses the .zip creation. In general I like Oliver's approach. Better yet, it can be modified a tad to make the process more efficient: * Create the file list once at the beginning. * Use the list for creating a zip file and one tar file. * Then make a copy of the tar file and gzip it. * Bzip the original tar file. * Delete the list. Previous Comments: ------------------------------------------------------------------------ [2004-05-23 16:11:52] ohill@php.net The following will work too (I've been beaten by 10 seconds by Martin!) Index: Makefile.in =================================================================== RCS file: /repository/peardoc/Makefile.in,v retrieving revision 1.1 diff -u -r1.1 Makefile.in --- Makefile.in 1 Oct 2002 02:40:51 -0000 1.1 +++ Makefile.in 23 May 2004 20:18:44 -0000 @@ -102,10 +102,12 @@ -rm -f $@ && (cd html; zip -9 -q ../$@ *.html) @MANUAL@.tar.gz: html/index.html - -rm -f $@ && (cd html; tar -cf - *.html) | gzip -9 > $@ + (cd html; find . -name '*.html' -print) > archive.lst + -rm -f $@ && (cd html; tar -cf - -T ../archive.lst) | gzip -9 > $@ && rm archive.lst @MANUAL@.tar.bz2: html/index.html - -rm -f $@ && (cd html; tar -cf - *.html) | bzip2 -9 > $@ + (cd html; find . -name '*.html' -print) > archive.lst + -rm -f $@ && (cd html; tar -cf - -T ../archive.lst) | bzip2 -9 > $@ && rm archive.lst # File endings we are going to define general rules for: .SUFFIXES: .html .xml .sgml ------------------------------------------------------------------------ [2004-05-23 16:07:33] mj@php.net The patch below should fix this problem. Interested parties with a working Docbook setup may want to try it. I don't expect much problems with the changes and I will thus commit them this week. Index: Makefile.in =================================================================== RCS file: /repository/peardoc/Makefile.in,v retrieving revision 1.1 diff -u -r1.1 Makefile.in --- Makefile.in 1 Oct 2002 02:40:51 -0000 1.1 +++ Makefile.in 23 May 2004 20:14:31 -0000 @@ -99,13 +99,13 @@ lynx -term=vt100 -nolist -dump file:pwd/$< > $@ @MANUAL@.zip: html/index.html - -rm -f $@ && (cd html; zip -9 -q ../$@ *.html) + -rm -f $@ basename $@ .zip && (find html -type f -exec zip -9 -uq $@ {} \;) @MANUAL@.tar.gz: html/index.html - -rm -f $@ && (cd html; tar -cf - *.html) | gzip -9 > $@ + -rm -f $@ basename $@ .gz && (find html -type f -exec tar -rf basename $@ .gz {} \;) && gzip -9 basename $@ .gz @MANUAL@.tar.bz2: html/index.html - -rm -f $@ && (cd html; tar -cf - *.html) | bzip2 -9 > $@ + -rm -f $@ basename $@ .bz2 && (find html -type f -exec tar -rf basename $@ .bz2 {} \;) && bzip2 -9 basename $@ .bz2 # File endings we are going to define general rules for: .SUFFIXES: .html .xml .sgml ------------------------------------------------------------------------ [2004-05-22 17:42:30] danielc at analysisandsolutions dot com First, please note, that even though pear_manual_en.zip is still in the list of available files, it is dated 25-Apr-2004. Second, the problem is happening because the number of files in the manual has grown to a point that we have reached the operating system's limit to process them all in one command (see where the build logs at http://pear.php.net/manual/en/build.log say "Argument list too long"). To work around this problem, we need to tweak the scripts so they create the tar and zip files in multiple stages. ------------------------------------------------------------------------ [2004-05-19 21:59:33] danielc at analysisandsolutions dot com http://pear.php.net/distributions/manual/ pear_manual_en.html.gz 16-May-2004 07:35 656k pear_manual_en.tar.bz2 16-May-2004 07:35 1k pear_manual_en.tar.gz 16-May-2004 07:35 1k pear_manual_en.txt.gz 16-May-2004 07:35 452k pear_manual_en.zip 25-Apr-2004 07:22 3.4M Same situation exists for the other languages as well. ------------------------------------------------------------------------ [2004-05-12 11:24:05] alister-pear at abulman dot co dot uk Description: ------------ http://pear.php.net/distributions/manual/pear_manual_en.tar.gz and other downloadable documention files are not created. See: http://pear.php.net/distributions/manual/?S=A the small (< 1K) files for .bz2 and .gz are the broken files. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=1393&edit=1

« previous php.pear.doc (#4085) next »