sanders     01/04/20 23:58:17

  Modified:    proposal/antgump/xsl antgump-each.xsl
  Log:
  Problem from previous patch.  The script name is the proper thing to exec.
  
  Revision  Changes    Path
  1.3       +39 -31    jakarta-alexandria/proposal/antgump/xsl/antgump-each.xsl
  
  Index: antgump-each.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/antgump/xsl/antgump-each.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- antgump-each.xsl  2001/04/20 18:26:57     1.2
  +++ antgump-each.xsl  2001/04/21 06:58:17     1.3
  @@ -1,32 +1,40 @@
  -<xsl:stylesheet version="1.0"
  -             xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -             xmlns:saxon="http://icl.com/saxon"
  -             extension-element-prefixes="saxon">
  -     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" 
omit-xml-declaration="yes"/>
  -     <xsl:strip-space elements="*"/>
  -     <xsl:param name="output-dir"/>
  -     <xsl:template match="*|@*"/>
  -     <xsl:template match="/workspace">
  -             <xsl:apply-templates/>
  -     </xsl:template>
  -     
  -     
  -     <xsl:template match="/workspace/project">
  -             <xsl:variable name="basedir" select="/workspace/@basedir"/>
  -             <xsl:variable name="cvsdir">
  -               <xsl:value-of select="concat(/workspace/@cvsdir, '/')"/>
  -               <xsl:choose>
  -                 <xsl:when test="cvs/@module">
  -                   <xsl:value-of select="cvs/@module"/>
  -                 </xsl:when>
  -                 <xsl:otherwise>
  -                   <xsl:value-of select="@srcdir"/>
  -                 </xsl:otherwise>
  -               </xsl:choose>
  -             </xsl:variable>
  -             <xsl:message terminate="no">
  -               <xsl:value-of select="concat('Creating Gump buildfile for ', 
@name)"/>
  -             </xsl:message>
  +<xsl:stylesheet      version="1.0"
  +                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  +              xmlns:saxon="http://icl.com/saxon"
  +  extension-element-prefixes="saxon">
  +
  +  <xsl:output    method="xml" 
  +                 version="1.0" 
  +                encoding="UTF-8" 
  +                  indent="yes" 
  +    omit-xml-declaration="yes"/>
  +
  +  <xsl:strip-space elements="*"/>
  +  <xsl:param name="output-dir"/>
  +
  +  <xsl:template match="*|@*"/>
  +
  +  <xsl:template match="/workspace">
  +    <xsl:apply-templates/>
  +  </xsl:template>
  +     
  +     
  +  <xsl:template match="/workspace/project">
  +    <xsl:variable name="basedir" select="/workspace/@basedir"/>
  +    <xsl:variable name="cvsdir">
  +      <xsl:value-of select="concat(/workspace/@cvsdir, '/')"/>
  +      <xsl:choose>
  +        <xsl:when test="cvs/@module">
  +          <xsl:value-of select="cvs/@module"/>
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <xsl:value-of select="@srcdir"/>
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </xsl:variable>
  +    <xsl:message terminate="no">
  +      <xsl:value-of select="concat('Creating Gump buildfile for ', @name)"/>
  +    </xsl:message>
                
                <saxon:output file="{$basedir}/{@name}-gumpbuild.xml">
                        <project name="{@name} Gump build file" default="gumpify" 
basedir="{$basedir}/{@srcdir}">
  @@ -138,7 +146,7 @@
                 
===========================================================================================
 -->        
        <xsl:template match="/workspace/project/script">
                <xsl:variable name="script.dir" select="concat(/workspace/@basedir, 
'/', ../@srcdir)"/>
  -             <xsl:variable name="script.sh" select="concat($script.dir, '/', 
../@name, '.sh')"/>
  +             <xsl:variable name="script.sh" select="concat($script.dir, '/', @name, 
'.sh')"/>
                <chmod perm="ugo+rx" file="{$script.sh}"/>
                <exec dir="{$script.dir}" executable="{$script.sh}"
                        output="{/workspace/@basedir}/{../@name}-buildresult.txt"/>
  @@ -165,7 +173,7 @@
                                        <xsl:value-of select="$cvsmodule.present"/>
                                </xsl:attribute>
                        </xsl:if>
  -                     <replace file="{/workspace/@basedir}/cvs_index.html" 
token="TAG-{../@name}-CVS-TIME" value="${TIMESTAMP}"/>
  +                     <replace file="{/workspace/@basedir}/cvs_index.html" 
token="TAG-{../@name}-CVS-TIME" value="${{TIMESTAMP}}"/>
                        <cvs command="{$command}" quiet="true">
                                <xsl:attribute name="cvsroot">
                                        <xsl:value-of 
select="/workspace/cvs-repository/tree[@name=$repo]/@root"/>
  
  
  

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

Reply via email to