svn: /pear/packages/Net_Growl/trunk/ README.txt build-phing.xml fo-custom.xsl local.win.properties

From: Date: Wed, 04 Apr 2012 15:55:57 +0000
Subject: svn: /pear/packages/Net_Growl/trunk/ README.txt build-phing.xml fo-custom.xsl local.win.properties
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-64608@lists.php.net to get a copy of this message
farell Wed, 04 Apr 2012 15:55:57 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=324804 Log: phing build script can now generate PDF in both format A4 and US You need to put the fo-custom.xsl file into the docbook-xsl/ sub-directory of your AsciiDoc 8.6.7 installation. Changed paths: U pear/packages/Net_Growl/trunk/README.txt U pear/packages/Net_Growl/trunk/build-phing.xml A pear/packages/Net_Growl/trunk/fo-custom.xsl U pear/packages/Net_Growl/trunk/local.win.properties Modified: pear/packages/Net_Growl/trunk/README.txt =================================================================== --- pear/packages/Net_Growl/trunk/README.txt 2012-04-04 14:51:51 UTC (rev 324803) +++ pear/packages/Net_Growl/trunk/README.txt 2012-04-04 15:55:57 UTC (rev 324804) @@ -3,7 +3,7 @@ NOTE: You should have installed on your system .For standard HTML or Docbook targets -AsciiDoc 8.6.6 +AsciiDoc 8.6.7 http://www.methods.co.nz/asciidoc/ Source-Highlight 3.1+ http://www.gnu.org/software/src-highlite/ @@ -18,12 +18,12 @@ Apache FOP http://xmlgraphics.apache.org/fop/index.html -With AsciiDoc 8.6.6 or greater you need to install additionnal theme first : +With AsciiDoc 8.6.7 or greater you need to install additionnal theme first : $ wget http://growl.laurent-laville.org/asciidoc-themes/growl-1.0.zip -$ asciidoc-8.6.6/asciidoc.py --theme install growl-1.0.zip +$ asciidoc-8.6.7/asciidoc.py --theme install growl-1.0.zip With external http://growl.laurent-laville.org/ layout, and linked javascript and styles -$ asciidoc-8.6.6/asciidoc.py +$ asciidoc-8.6.7/asciidoc.py -a icons -a toc2 -a linkcss @@ -33,14 +33,14 @@ docs/userguide.txt With basic layout, and embbeded javascript and styles -$ asciidoc-8.6.6/asciidoc.py +$ asciidoc-8.6.7/asciidoc.py -a icons -a toc -n -v docs/userguide.txt -Or used Phing 2.4.9 +Or used Phing 2.4.11 But be careful to change first properties 'asciidoc.home' and 'homedir' values that reflect your platform and installation. @@ -63,4 +63,8 @@ phing /path/to/build-phing.xml make-userguide-htmlhelp PDF file (with FOP) -phing /path/to/build-phing.xml make-userguide-pdf +Since version 2.6.0 you can generate either PDF in A4 or US format + +phing /path/to/build-phing.xml make-userguide-pdf-a4 +or +phing /path/to/build-phing.xml make-userguide-pdf-us Modified: pear/packages/Net_Growl/trunk/build-phing.xml =================================================================== --- pear/packages/Net_Growl/trunk/build-phing.xml 2012-04-04 14:51:51 UTC (rev 324803) +++ pear/packages/Net_Growl/trunk/build-phing.xml 2012-04-04 15:55:57 UTC (rev 324804) @@ -29,7 +29,8 @@ <echo>make-userguide-all Build the user guide in all formats</echo> <echo>make-userguide-chunked Build the user guide in many HTML files</echo> <echo>make-userguide-htmlhelp Build the user guide in CHM format</echo> - <echo>make-userguide-pdf Build the user guide in PDF format</echo> + <echo>make-userguide-pdf-a4 Build the user guide in PDF A4 format</echo> + <echo>make-userguide-pdf-us Build the user guide in PDF US format</echo> <echo>make-userguide-epub Build the user guide in EPUB format</echo> </target> @@ -66,13 +67,20 @@ </if> <if> - <istrue value="${build.book.pdf}" /> + <istrue value="${build.book.pdf-a4}" /> <then> - <phingcall target="make-userguide-pdf" /> + <phingcall target="make-userguide-pdf-a4" /> </then> </if> <if> + <istrue value="${build.book.pdf-us}" /> + <then> + <phingcall target="make-userguide-pdf-us" /> + </then> + </if> + + <if> <istrue value="${build.book.epub}" /> <then> <phingcall target="make-userguide-epub" /> @@ -163,15 +171,26 @@ </target> - <target name="make-userguide-pdf" - description="Build the user guide of Net_Growl in PDF format"> + <target name="make-userguide-pdf-a4" + description="Build the user guide in PDF A4 format"> <exec dir="${asciidoc.home}" command="a2x.py -L --icons --stylesheet=./stylesheets/docbook-xsl.css -d book -f pdf --fop -D ${output.dir} ${homedir}/docs/netgrowl-book.txt" /> + <move file="${output.dir}/netgrowl-book.pdf" tofile="${output.dir}/netgrowl-book-a4.pdf" /> </target> + <target name="make-userguide-pdf-us" + description="Build the user guide in PDF US format"> + + <exec dir="${asciidoc.home}" + command="a2x.py -L --icons --stylesheet=./stylesheets/docbook-xsl.css --xsl-file=./docbook-xsl/fo-custom.xsl -d book -f pdf --fop -D ${output.dir} ${homedir}/docs/netgrowl-book.txt" + /> + <move file="${output.dir}/netgrowl-book.pdf" tofile="${output.dir}/netgrowl-book-us.pdf" /> + + </target> + <target name="make-userguide-epub" description="Build the user guide of Net_Growl in EPUB format"> Added: pear/packages/Net_Growl/trunk/fo-custom.xsl =================================================================== --- pear/packages/Net_Growl/trunk/fo-custom.xsl (rev 0) +++ pear/packages/Net_Growl/trunk/fo-custom.xsl 2012-04-04 15:55:57 UTC (rev 324804) @@ -0,0 +1,10 @@ +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format"> +<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/> +<xsl:import href="common.xsl"/> +<xsl:import href="fo.xsl"/> + +<xsl:param name="paper.type" select="'USletter'"/> + +</xsl:stylesheet> Modified: pear/packages/Net_Growl/trunk/local.win.properties =================================================================== --- pear/packages/Net_Growl/trunk/local.win.properties 2012-04-04 14:51:51 UTC (rev 324803) +++ pear/packages/Net_Growl/trunk/local.win.properties 2012-04-04 15:55:57 UTC (rev 324804) @@ -1,10 +1,11 @@ -asciidoc.home=C:\asciidoc-8.6.6 +asciidoc.home=C:\asciidoc-8.6.7 homedir=C:\home\pear\Net_Growl\trunk -output.dir=C:\www\growl\manual\2.5\en +output.dir=C:\www\growl\manual\2.6\en build.tarball=true build.book.chunked=true build.book.chm=true -build.book.pdf=true +build.book.pdf-a4=true +build.book.pdf-us=true build.book.epub=true htmlhelpworkshop=C:\Program Files\HTML Help Workshop theme=growl

« previous php.pear.cvs (#64608) next »