rubys       01/10/09 16:13:52

  Modified:    proposal/gump/stylesheet bash.xsl build.xsl win2k.xsl
  Log:
  Rsync support
  
  Revision  Changes    Path
  1.54      +33 -11    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.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- bash.xsl  2001/10/08 18:54:02     1.53
  +++ bash.xsl  2001/10/09 23:13:52     1.54
  @@ -77,14 +77,22 @@
     </xsl:template>
   
     <xsl:template match="build//project">
  -    <xsl:if test="@name='clean'">
  -      <xsl:text>fi&#10;</xsl:text>
  -      <xsl:text>&#10;if test $all; then&#10;</xsl:text>
  -    </xsl:if>
  +    <xsl:choose>
  +      <xsl:when test="@name='clean'">
  +        <xsl:text>fi&#10;</xsl:text>
  +        <xsl:text>&#10;if test $all; then&#10;</xsl:text>
  +      </xsl:when>
   
  -    <xsl:text>echo Building </xsl:text>
  -    <xsl:value-of select="@name"/>
  -    <xsl:text>&#10;</xsl:text>
  +      <xsl:when test="@name='sync'">
  +        <xsl:text>echo Synchronizing&#10;</xsl:text>
  +      </xsl:when>
  +
  +      <xsl:otherwise>
  +        <xsl:text>echo Building </xsl:text>
  +        <xsl:value-of select="@name"/>
  +        <xsl:text>&#10;</xsl:text>
  +      </xsl:otherwise>
  +    </xsl:choose>
   
       <xsl:if test="count(.//ant)=1">
         <xsl:text>export TARGET="</xsl:text>
  @@ -439,11 +447,11 @@
     <!-- =================================================================== -->
   
     <xsl:template match="copy">
  -    <xsl:text>cp -r </xsl:text>
  +    <xsl:text>eval "cp -r </xsl:text>
       <xsl:value-of select="translate(@fromdir,'\','/')"/>
       <xsl:text> </xsl:text>
       <xsl:value-of select="translate(@todir,'\','/')"/>
  -    <xsl:text>&#10;</xsl:text>
  +    <xsl:text> $OUT 2&gt;&amp;1"&#10;</xsl:text>
     </xsl:template>
   
     <!-- =================================================================== -->
  @@ -456,11 +464,25 @@
         <xsl:value-of select="translate(@file,'\','/')"/>
         <xsl:text> &amp;&amp; </xsl:text>
       </xsl:if>
  -    <xsl:text>mv </xsl:text>
  +    <xsl:text>eval "mv </xsl:text>
       <xsl:value-of select="translate(@file,'\','/')"/>
       <xsl:text> </xsl:text>
       <xsl:value-of select="translate(@todir,'\','/')"/>
  -    <xsl:text>&#10;</xsl:text>
  +    <xsl:text> $OUT 2&gt;&amp;1"&#10;</xsl:text>
  +  </xsl:template>
  +
  +  <!-- =================================================================== -->
  +  <!--                         Synch a directory                           -->
  +  <!-- =================================================================== -->
  +
  +  <xsl:template match="sync">
  +    <xsl:text>eval "</xsl:text>
  +    <xsl:value-of select="/build/@sync"/>
  +    <xsl:text> </xsl:text>
  +    <xsl:value-of select="translate(@fromdir,'\','/')"/>
  +    <xsl:text>/ </xsl:text>
  +    <xsl:value-of select="translate(@todir,'\','/')"/>
  +    <xsl:text> $OUT 2&gt;&amp;1"&#10;</xsl:text>
     </xsl:template>
   
     <!-- =================================================================== -->
  
  
  
  1.36      +31 -12    jakarta-alexandria/proposal/gump/stylesheet/build.xsl
  
  Index: build.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/build.xsl,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- build.xsl 2001/10/08 15:49:27     1.35
  +++ build.xsl 2001/10/09 23:13:52     1.36
  @@ -21,7 +21,7 @@
   
     <xsl:template match="workspace">
   
  -    <build>
  +    <build sync="{@sync}">
   
         <chdir dir="{$basedir}"/>
         <mkdir dir="{$logdir}"/>
  @@ -30,20 +30,39 @@
   
         <!-- clean up old build directories -->
         <project name="clean">
  -        <logic name="clean">
  -          <mkdir dir="trashbin"/>
  -          <xsl:for-each select="module[cvs]">
  -            <move file="{@srcdir}" todir="trashbin" quiet="true"/>
  -          </xsl:for-each>
  -          <delete dir="trashbin"/>
  -        </logic>
  +        <html log="{$logdir}/clean.html"
  +          banner-image="{$banner-image}" banner-link="{$banner-link}">
  +          <content>
  +            <logic name="clean">
  +              <mkdir dir="trashbin"/>
  +              <xsl:for-each select="module[cvs]">
  +                <move file="{@srcdir}" todir="trashbin" quiet="true"/>
  +              </xsl:for-each>
  +              <delete dir="trashbin"/>
  +            </logic>
  +          </content>
  +        </html>
         </project>
   
         <!-- initialize new build directories -->
  -      <xsl:for-each select="module[cvs]">
  -        <delete dir="{@srcdir}"/>
  -        <copy fromdir="{$cvsdir}/{@name}" todir="{@srcdir}"/>
  -      </xsl:for-each>
  +      <project name="sync">
  +        <html log="{$logdir}/sync.html"
  +          banner-image="{$banner-image}" banner-link="{$banner-link}">
  +          <content>
  +            <logic name="sync">
  +              <xsl:for-each select="module[cvs]">
  +                <xsl:if test="not(/workspace/@sync)">
  +                  <delete dir="{@srcdir}"/>
  +                  <copy fromdir="{$cvsdir}/{@name}" todir="{@srcdir}"/>
  +                </xsl:if>
  +                <xsl:if test="/workspace/@sync">
  +                  <sync fromdir="{$cvsdir}/{@name}" todir="{@srcdir}"/>
  +                </xsl:if>
  +              </xsl:for-each>
  +            </logic>
  +          </content>
  +        </html>
  +      </project>
   
         <html log="{$logdir}/index.html"
           banner-image="{$banner-image}" banner-link="{$banner-link}">
  
  
  
  1.24      +28 -7     jakarta-alexandria/proposal/gump/stylesheet/win2k.xsl
  
  Index: win2k.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/win2k.xsl,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- win2k.xsl 2001/10/08 18:54:02     1.23
  +++ win2k.xsl 2001/10/09 23:13:52     1.24
  @@ -33,13 +33,21 @@
     </xsl:template>
   
     <xsl:template match="build//project">
  -    <xsl:if test="@name='clean'">
  -      <xsl:text>if "%1"=="all" goto end_clean&#10;</xsl:text>
  -    </xsl:if>
  +    <xsl:choose>
  +      <xsl:when test="@name='clean'">
  +        <xsl:text>&#10;if "%1"=="all" goto end_clean&#10;</xsl:text>
  +      </xsl:when>
   
  -    <xsl:text>&#10;echo Building </xsl:text>
  -    <xsl:value-of select="@name"/>
  -    <xsl:text>&#10;</xsl:text>
  +      <xsl:when test="@name='sync'">
  +        <xsl:text>&#10;echo Synchronizing&#10;</xsl:text>
  +      </xsl:when>
  +
  +      <xsl:otherwise>
  +        <xsl:text>&#10;echo Building </xsl:text>
  +        <xsl:value-of select="@name"/>
  +        <xsl:text>&#10;</xsl:text>
  +      </xsl:otherwise>
  +    </xsl:choose>
   
       <xsl:if test="count(.//ant)=1">
         <xsl:text>SET TARGET=</xsl:text>
  @@ -393,7 +401,7 @@
       <xsl:value-of select="translate(@fromdir,'/','\')"/>
       <xsl:text> </xsl:text>
       <xsl:value-of select="translate(@todir,'/','\')"/>
  -    <xsl:text>&#10;</xsl:text>
  +    <xsl:text> %OUT% 2&gt;&amp;1&#10;</xsl:text>
     </xsl:template>
   
     <!-- =================================================================== -->
  @@ -411,6 +419,19 @@
       <xsl:text> </xsl:text>
       <xsl:value-of select="translate(@todir,'/','\')"/>
       <xsl:text>&#10;</xsl:text>
  +  </xsl:template>
  +
  +  <!-- =================================================================== -->
  +  <!--                         Synch a directory                           -->
  +  <!-- =================================================================== -->
  +
  +  <xsl:template match="sync">
  +    <xsl:value-of select="/build/@sync"/>
  +    <xsl:text> </xsl:text>
  +    <xsl:value-of select="translate(@fromdir,'/','\')"/>
  +    <xsl:text>\ </xsl:text>
  +    <xsl:value-of select="translate(@todir,'/','\')"/>
  +    <xsl:text> $OUT 2&gt;&amp;1"&#10;</xsl:text>
     </xsl:template>
   
     <!-- =================================================================== -->
  
  
  

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

Reply via email to