rubys 01/02/05 08:05:24
Modified: proposal/gump/stylesheet bash.xsl
Log:
Improve reporting of prereq failures
Revision Changes Path
1.3 +16 -3 jakarta-alexandria/proposal/gump/stylesheet/bash.xsl
Index: bash.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/bash.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- bash.xsl 2001/02/04 21:23:47 1.2
+++ bash.xsl 2001/02/05 16:05:24 1.3
@@ -236,12 +236,25 @@
<!-- =================================================================== -->
<xsl:template match="prereq">
+ <xsl:variable name="project" select="@project"/>
<xsl:for-each select="file">
- <xsl:text>test -e </xsl:text>
+ <xsl:text>if test ! -e </xsl:text>
<xsl:value-of select="translate(@path,'\','/')"/>
- <xsl:text> || export STATUS="PREREQ FAILURE - </xsl:text>
- <xsl:value-of select="@project"/>
+ <xsl:text>; then </xsl:text>
+
+ <xsl:text> export STATUS="PREREQ FAILURE - </xsl:text>
+ <xsl:value-of select="$project"/>
<xsl:text>" </xsl:text>
+
+ <xsl:text> eval echo "\<p\>Missing prereq \<code\></xsl:text>
+ <xsl:value-of select="translate(@path,'\','/')"/>
+ <xsl:text>\</code\> from \<a href=\"</xsl:text>
+ <xsl:value-of select="$project"/>
+ <xsl:text>.html\"\></xsl:text>
+ <xsl:value-of select="$project"/>
+ <xsl:text>\</a\>\</p\> $OUT" </xsl:text>
+
+ <xsl:text>fi </xsl:text>
</xsl:for-each>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]