On 19.09.2009 04:27, William A. Rowe, Jr. wrote: > Yes, if anyone wants to suggest an update that lets us nuke man/ > without modifying the xml, that would be cool. Can we have a conditional > on an 'exists' sort of criteria?
Like this? --- style/xsl/language.xsl 2009-03-20 19:09:28.000000000 +0100 +++ style/xsl/language.xsl 2009-09-19 05:14:02.000000000 +0200 @@ -133,6 +133,14 @@ <project name="lang-targets"> &lf;&lf; + <!-- Test for existence of man page directory --> + <target name="check-man"> + <if><not><available file="../../man" type="dir" /></not><then> + <property name="skip-man" value="yes" /> + </then></if> + </target> + &lf; + <!-- build *-all targets --> <!-- =================== --> <target name="all" @@ -237,6 +245,8 @@ <xsl:if test="$file/man"> <target name="man-{.}" + depends="check-man" + unless="skip-man" description="- builds the {$file/name} nroff files">&lf; <xsl:text> </xsl:text> <nroff.generic lang="{.}" />&lf;