From: Michael D. <mik...@us...> - 2005-05-03 14:33:55
|
Update of /cvsroot/nhibernate/nhibernate/doc/reference In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17909 Modified Files: doc.build Log Message: updated to use nant-0.85 features that help clean up the build. Index: doc.build =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/doc/reference/doc.build,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** doc.build 28 Mar 2005 05:08:04 -0000 1.6 --- doc.build 3 May 2005 14:33:45 -0000 1.7 *************** *** 3,7 **** name="doc" default="build" ! xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd" > <!-- --- 3,7 ---- name="doc" default="build" ! xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" > <!-- *************** *** 13,16 **** --- 13,19 ---- I have not figured out a way to modify the Path through NAnt so you need to make sure that xsltproc is in the path. + + 2005-05-03: probably is doable with nant-0.85 but I'm not going to mess with + it since the easy solution is put xsltproc in the path. --> *************** *** 30,63 **** <property name="build.html.dir" value="${output.dir}/html" /> ! ! <mkdir dir="${build.html.dir}" failonerror="false" /> ! <mkdir dir="${build.html.dir}/single" failonerror="false" /> ! <mkdir dir="${build.html.dir}/chunk" failonerror="false" /> ! <mkdir dir="${build.html.dir}/styles" failonerror="false" /> ! <mkdir dir="${build.html.dir}/images" failonerror="false" /> ! <!-- ! When using property elements that contain paths to files they ! unfortunately can't just be passed to the command line. I haven't ! figured out how to get the nant path seperator of "/" to be translated ! windows path seperator of "\". So we just have to use the long form. ! --> ! <exec program="xsltproc"> <arg value="--output" /> ! <arg value="build\${lang}\html\single\reference.html" /> <!-- file to output transform results to --> ! <arg value="${lang}\styles\html.xsl" /> <!-- xsl to do the transforming --> ! <arg value="${lang}\master.xml" /> <!-- xml file to transform --> </exec> ! <exec program="xsltproc"> <arg value="--output" /> ! <arg value="build\${lang}\html\chunk\" /> <!-- dir to output transform results to --> ! <arg value="${lang}\styles\html_chunk.xsl" /> <!-- xsl to do the transforming --> ! <arg value="${lang}\master.xml" /> <!-- xml file to transform --> </exec> <copy todir="${build.html.dir}"> <fileset basedir="${lang}"> ! <includes name="styles/html.css" /> ! <includes name="images/**.*" /> </fileset> </copy> --- 33,65 ---- <property name="build.html.dir" value="${output.dir}/html" /> ! <property name="build.single.dir" value="${build.html.dir}/single" /> ! <property name="build.chunk.dir" value="${build.html.dir}/chunk" /> ! <property name="build.styles.dir" value="${build.html.dir}/styles" /> ! <property name="build.images.dir" value="${build.html.dir}/images" /> ! <mkdir dir="${build.html.dir}" failonerror="false" /> ! <mkdir dir="${build.single.dir}" failonerror="false" /> ! <mkdir dir="${build.chunk.dir}" failonerror="false" /> ! <mkdir dir="${build.styles.dir}" failonerror="false" /> ! <mkdir dir="${build.images.dir}" failonerror="false" /> ! ! <exec program="xsltproc" > <arg value="--output" /> ! <arg file="${build.single.dir}/reference.html" /><!-- file to output transform results to --> ! <arg file="${lang}/styles/html.xsl" /><!-- xsl to do the transforming --> ! <arg file="${lang}/master.xml" /><!-- xml file to transform --> </exec> ! ! <exec program="xsltproc" > <arg value="--output" /> ! <arg path="${build.chunk.dir}/" /><!-- dir to output transform results to (add the trailing '/' for xsltproc) --> ! <arg file="${lang}/styles/html_chunk.xsl" /><!-- xsl to do the transforming --> ! <arg file="${lang}/master.xml" /><!-- xml file to transform --> </exec> <copy todir="${build.html.dir}"> <fileset basedir="${lang}"> ! <include name="styles/html.css" /> ! <include name="images/**.*" /> </fileset> </copy> *************** *** 76,82 **** <exec program="xsltproc"> <arg value="--output" /> ! <arg value="build\${lang}\chm\" /> <!-- dir to output transform results to --> ! <arg value="${lang}\styles\htmlhelp.xsl" /> <!-- xsl to do the transforming --> ! <arg value="${lang}\master.xml" /> <!-- xml file to transform --> </exec> --- 78,84 ---- <exec program="xsltproc"> <arg value="--output" /> ! <arg path="${build.chm.dir}/" /><!-- dir to output transform results to (add the trailing '/' for xsltproc) --> ! <arg file="${lang}/styles/htmlhelp.xsl" /> <!-- xsl to do the transforming --> ! <arg file="${lang}/master.xml" /> <!-- xml file to transform --> </exec> *************** *** 87,103 **** <copy todir="${build.chm.dir}" flatten="true"> <fileset basedir="${lang}"> ! <includes name="styles/*.css" /> ! <includes name="images/**.*" /> </fileset> </copy> <exec program="${hhc.exe}"> ! <arg value="build\${lang}\chm\htmlhelp.hhp" /> </exec> <delete> <fileset basedir="${build.chm.dir}"> ! <includes name="*" /> ! <excludes name="*.chm" /> </fileset> </delete> --- 89,105 ---- <copy todir="${build.chm.dir}" flatten="true"> <fileset basedir="${lang}"> ! <include name="styles/*.css" /> ! <include name="images/**.*" /> </fileset> </copy> <exec program="${hhc.exe}"> ! <arg file="${build.chm.dir}/htmlhelp.hhp" /> </exec> <delete> <fileset basedir="${build.chm.dir}"> ! <include name="*" /> ! <exclude name="*.chm" /> </fileset> </delete> *************** *** 108,112 **** <move todir="${build.dir}/doc/help"> <fileset basedir="${output.dir}"> ! <includes name="**/*" /> </fileset> </move> --- 110,114 ---- <move todir="${build.dir}/doc/help"> <fileset basedir="${output.dir}"> ! <include name="**/*" /> </fileset> </move> |