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&#10;</xsl:text>
  +
  +      <xsl:text>  export STATUS="PREREQ FAILURE - </xsl:text>
  +      <xsl:value-of select="$project"/>
         <xsl:text>"&#10;</xsl:text>
  +
  +      <xsl:text>  eval echo "\&lt;p\&gt;Missing prereq \&lt;code\&gt;</xsl:text>
  +      <xsl:value-of select="translate(@path,'\','/')"/>
  +      <xsl:text>\&lt;/code\&gt; from \&lt;a href=\"</xsl:text>
  +      <xsl:value-of select="$project"/>
  +      <xsl:text>.html\"\&gt;</xsl:text>
  +      <xsl:value-of select="$project"/>
  +      <xsl:text>\&lt;/a\&gt;\&lt;/p\&gt; $OUT"&#10;</xsl:text>
  +
  +      <xsl:text>fi&#10;</xsl:text>
       </xsl:for-each>
     </xsl:template>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to