You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by Conor MacNeill <co...@cortexebusiness.com.au> on 2002/03/04 16:02:03 UTC
[PATCH] basedir on
I patched bash.xml as shown below to allow for a basedir attribute on
the script element.
It allows me to run mutant's bootstrap script.
I haven't done the corresponding changes to the windows equivalent. If
you think itis a good idea, let me know and I will go ahead.
Conor
Index: stylesheet/bash.xsl
===================================================================
RCS file:
/home/cvspublic/jakarta-alexandria/proposal/gump/stylesheet/bash.xsl,v
retrieving revision 1.72
diff -3 -u -w -p -r1.72 bash.xsl
--- stylesheet/bash.xsl 29 Jan 2002 01:55:55 -0000 1.72
+++ stylesheet/bash.xsl 4 Mar 2002 14:54:50 -0000
@@ -541,6 +541,11 @@
<!--
=================================================================== -->
<xsl:template match="script">
+ <xsl:if test="@basedir">
+ <xsl:text>eval "cd </xsl:text>
+ <xsl:value-of select="translate(@basedir,'\','/')"/>
+ <xsl:text> $OUT 2>&1" </xsl:text>
+ </xsl:if>
<xsl:text>eval "./</xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>.sh $OUT 2>&1" </xsl:text>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>