cvs: peardoc /scripts pearwebbuild.php

From: Date: Mon, 01 Dec 2008 22:27:14 +0000
Subject: cvs: peardoc /scripts pearwebbuild.php
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11304@lists.php.net to get a copy of this message
saltybeagle Mon Dec 1 22:27:14 2008 UTC Modified files: /peardoc/scripts pearwebbuild.php Log: Add building the chunked .zip, .tar.bz2, and big file .bz2... requires Phar extension with zlib and bz2. http://cvs.php.net/viewvc.cgi/peardoc/scripts/pearwebbuild.php?r1=1.2&r2=1.3&diff_format=u Index: peardoc/scripts/pearwebbuild.php diff -u peardoc/scripts/pearwebbuild.php:1.2 peardoc/scripts/pearwebbuild.php:1.3 --- peardoc/scripts/pearwebbuild.php:1.2 Tue Nov 18 21:44:48 2008 +++ peardoc/scripts/pearwebbuild.php Mon Dec 1 22:27:14 2008 @@ -45,9 +45,39 @@ logAndEcho("Now running phd for $lang"); shell_exec("phd -f xhtml -t pearbightml -o build/$lang -d giant.xml >> scripts/build.log"); + + logAndEcho('Creating pearbightml downloadable file'); + + $zipfilename = "build/$lang/pear_manual_$lang.html.phar"; + $phar = new Phar($zipfilename); + $phar->addFile("build/$lang/pear_manual_en.html", "pear_manual_$lang.html"); + @unlink("build/$lang/pear_manual_$lang.html.tar.bz2"); + $phar->convertToData(Phar::TAR, Phar::BZ2, '.html.tar.bz2'); + + // Remove the .phar + @unlink("build/$lang/pear_manual_$lang.html.phar"); + shell_exec("phd -f xhtml -t pearchunkedhtml -o build/$lang -d giant.xml >> scripts/build.log"); + + $zipfilename = "build/$lang/pear_manual_$lang.phar"; + + logAndEcho('Creating pearchunked downloadable zip'); + + $phar = new Phar($zipfilename); + $phar->buildFromDirectory('build/'.$lang.'/html'); + @unlink("build/$lang/pear_manual_$lang.zip"); + $phar->convertToData(Phar::ZIP); + @unlink("build/$lang/pear_manual_$lang.tar.bz2"); + $phar->convertToData(Phar::TAR, Phar::BZ2); + + // Remove the .phar + @unlink("build/$lang/pear_manual_$lang.phar"); + shell_exec("phd -f xhtml -t pearweb -o build/$lang -d giant.xml >> scripts/build.log"); - shell_exec("phd -f xhtml -t pearchm -o build/$lang -d giant.xml >> scripts/build.log"); + + // Remove chm build until we can get a chm compiler going. + //shell_exec("phd -f xhtml -t pearchm -o build/$lang -d giant.xml >> scripts/build.log"); + logAndEcho("Finished peardoc/$lang"); } }

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