Sorry Sam, missed a couple...

> -----Original Message-----
> From: John Morrison [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 06 March 2001 4:04 pm
> To: [EMAIL PROTECTED]
> Subject: RE: Off topic (in part)
>
>
> Sam,
>
> I just realised, the path to the image; I changed it to a local image ages
> ago and the patch reflects this - you might want to change that!
>
> John.
>
> > -----Original Message-----
> > From: John Morrison [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 05 March 2001 10:25 pm
> > To: [EMAIL PROTECTED]
> > Subject: RE: Off topic (in part)
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Sam Ruby [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, 05 March 2001 6:04 pm
> > > To: John Morrison
> > > Subject: RE: Off topic (in part)
> > >
> > >
> > > > PS Do you mind if I look at putting the log files in a config
> > > > dependant position rather than a subdir of the base?
> > >
> > > Sounds great!
> > >
> > > - Sam Ruby
> > >
> >
> > Here you are Sam, two diffs (one with -c the other without).  This is my
> > first attempt at generating these, please be gentle with any criticism!
> >
> > You can now add a logdir to your workspace, if it doesn't find
> > one, it uses
> > "/workspace/@basedir"/logs ie no change in default functionality.
> >
> > I also moved lots of translates up into a single xsl:variable.
> If I broke
> > anything (I don't *think* I did) I'm sorry.
> >
> > Anyway, enjoy.
> >
> > J.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
? logdiff.txt
Index: bash.xsl
===================================================================
RCS file: /home/cvspublic/jakarta-alexandria/proposal/gump/stylesheet/bash.xsl,v
retrieving revision 1.11
diff -u -r1.11 bash.xsl
--- bash.xsl    2001/03/07 15:13:34     1.11
+++ bash.xsl    2001/03/09 21:34:44
@@ -162,6 +162,7 @@
   <xsl:template match="workspace">
     <xsl:variable name="basedir" select="translate(@basedir, '\', '/')"/>
     <xsl:variable name="cvsdir"  select="translate(@cvsdir,  '\', '/')"/>
+    <xsl:variable name="logdir"  select="translate(@logdir,  '\', '/')"/>
 
     <xsl:text>#/bin/sh&#10;</xsl:text>
 
@@ -172,10 +173,10 @@
     <xsl:text>&#10;</xsl:text>
 
     <xsl:text>test -e </xsl:text>
-    <xsl:value-of select="$basedir"/>
-    <xsl:text>/log || mkdir </xsl:text>
-    <xsl:value-of select="$basedir"/>
-    <xsl:text>/log &#10;</xsl:text>
+    <xsl:value-of select="$logdir"/>
+    <xsl:text> || mkdir </xsl:text>
+    <xsl:value-of select="$logdir"/>
+    <xsl:text>&#10;</xsl:text>
 
     <xsl:text>test -e </xsl:text>
     <xsl:value-of select="$cvsdir"/>
@@ -184,8 +185,8 @@
     <xsl:text>&#10;</xsl:text>
 
     <xsl:text>sh publish.sh $1 </xsl:text>
-    <xsl:value-of select="$basedir"/>
-    <xsl:text>/log/source_index.html&#10;</xsl:text>
+    <xsl:value-of select="$logdir"/>
+    <xsl:text>/source_index.html&#10;</xsl:text>
 
     <xsl:for-each select="project">
       <xsl:sort select="@name"/>
@@ -193,16 +194,16 @@
       <xsl:text>sh publish.sh </xsl:text>
       <xsl:value-of select="translate(@href,'\','/')"/>
       <xsl:text> </xsl:text>
-      <xsl:value-of select="$basedir"/>
-      <xsl:text>/log/source_</xsl:text>
+      <xsl:value-of select="$logdir"/>
+      <xsl:text>/source_</xsl:text>
       <xsl:value-of select="substring-before(substring-after(@href,'/'),'.')"/>
       <xsl:text>.html&#10;</xsl:text>
     </xsl:for-each>
 
     <xsl:text>for i in ../stylesheet/*.xsl; do&#10;</xsl:text>
     <xsl:text>  sh publish.sh stylesheet/`basename $i` </xsl:text>
-    <xsl:value-of select="$basedir"/>
-    <xsl:text>/log/code_`basename $i`.html&#10;</xsl:text>
+    <xsl:value-of select="$logdir"/>
+    <xsl:text>/code_`basename $i`.html&#10;</xsl:text>
     <xsl:text>done&#10;</xsl:text>
 
     <xsl:text>sh xref.sh&#10;</xsl:text>
@@ -288,7 +289,7 @@
   </xsl:template>
 
   <!-- =================================================================== -->
-  <!--                        create the claspath                          -->
+  <!--                        create the classpath                         -->
   <!-- =================================================================== -->
 
   <xsl:template match="classpath">

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

Reply via email to