rubys 01/09/18 12:14:51
Modified: proposal/gump gen.bat gen.sh
proposal/gump/stylesheet bash.xsl publish.xsl sedmap.xsl
win2k.xsl
Log:
Solaris's sed seems deficient...converting to Perl.
Revision Changes Path
1.8 +1 -1 jakarta-alexandria/proposal/gump/gen.bat
Index: gen.bat
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/gen.bat,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- gen.bat 2001/08/01 21:33:45 1.7
+++ gen.bat 2001/09/18 19:14:51 1.8
@@ -84,7 +84,7 @@
if not errorlevel 0 goto fail
echo Generate editing instructions
-java org.apache.xalan.xslt.Process -text -in work\merge.xml -xsl
stylesheet\sedmap.xsl -out work\map.sed
+java org.apache.xalan.xslt.Process -text -in work\merge.xml -xsl
stylesheet\sedmap.xsl -out work\map.pl
if not errorlevel 0 goto fail
REM ********************************************************************
1.12 +1 -1 jakarta-alexandria/proposal/gump/gen.sh
Index: gen.sh
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/gen.sh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- gen.sh 2001/08/12 22:04:16 1.11
+++ gen.sh 2001/09/18 19:14:51 1.12
@@ -107,7 +107,7 @@
echo Generate editing instructions
test -n "$FAIL" || \
-java org.apache.xalan.xslt.Process -text -in work/merge.xml -xsl
stylesheet/sedmap.xsl -out work/map.sed || \
+java org.apache.xalan.xslt.Process -text -in work/merge.xml -xsl
stylesheet/sedmap.xsl -out work/map.pl || \
export FAIL=1
# **** publish ***
1.36 +2 -2 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.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- bash.xsl 2001/09/18 16:27:46 1.35
+++ bash.xsl 2001/09/18 19:14:51 1.36
@@ -150,9 +150,9 @@
</xsl:template>
<xsl:template match="sed">
- <xsl:text>eval "sed -f </xsl:text>
+ <xsl:text>eval "perl </xsl:text>
<xsl:value-of select="@script"/>
- <xsl:text> < ../$1 $OUT" </xsl:text>
+ <xsl:text> ../$1 $OUT" </xsl:text>
</xsl:template>
<!-- =================================================================== -->
1.3 +1 -1 jakarta-alexandria/proposal/gump/stylesheet/publish.xsl
Index: publish.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/publish.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- publish.xsl 2001/03/06 18:11:52 1.2
+++ publish.xsl 2001/09/18 19:14:51 1.3
@@ -31,7 +31,7 @@
<menu/>
<content>
- <sed script="map.sed"/>
+ <sed script="map.pl"/>
</content>
</html>
1.3 +28 -25 jakarta-alexandria/proposal/gump/stylesheet/sedmap.xsl
Index: sedmap.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/sedmap.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sedmap.xsl 2001/04/22 15:27:59 1.2
+++ sedmap.xsl 2001/09/18 19:14:51 1.3
@@ -6,44 +6,48 @@
<xsl:template match="workspace">
- <xsl:text>s/&/\&amp;/g </xsl:text>
- <xsl:text>s/</\&lt;/g </xsl:text>
- <xsl:text>s/>/\&gt;/g </xsl:text>
+ <xsl:text></xsl:text>
+ <xsl:text>print "<PRE>\n"; </xsl:text>
+ <xsl:text>while (<>) { </xsl:text>
+
+ <xsl:text> s/&/\&amp;/g; </xsl:text>
+ <xsl:text> s/</\&lt;/g; </xsl:text>
+ <xsl:text> s/>/\&gt;/g; </xsl:text>
- <xsl:text>s/&lt;!--.*--&gt;/</xsl:text>
+ <xsl:text> s/&lt;!--.*--&gt;/</xsl:text>
<xsl:text><font color="green"></xsl:text>
- <xsl:text>&<\/font>/g </xsl:text>
+ <xsl:text>&<\/font>/g; </xsl:text>
- <xsl:text>s/repository *href="\(.*\)\/\(.*\).xml"/</xsl:text>
+ <xsl:text> s/repository *href="(.*)\/(.*).xml"/</xsl:text>
<xsl:text>repository href="<a href="repository_\2.html"></xsl:text>
- <xsl:text>\1\/\2.xml<\/a>"/g </xsl:text>
+ <xsl:text>\1\/\2.xml<\/a>"/g; </xsl:text>
- <xsl:text>s/profile *href="\(.*\)\/\(.*\).xml"/</xsl:text>
+ <xsl:text> s/profile *href="(.*)\/(.*).xml"/</xsl:text>
<xsl:text>profile href="<a href="profile_\2.html"></xsl:text>
- <xsl:text>\1\/\2.xml<\/a>"/g </xsl:text>
+ <xsl:text>\1\/\2.xml<\/a>"/g; </xsl:text>
- <xsl:text>s/project *href="\(.*\)\/\(.*\).xml"/</xsl:text>
+ <xsl:text> s/project *href="(.*)\/(.*).xml"/</xsl:text>
<xsl:text>project href="<a href="project_\2.html"></xsl:text>
- <xsl:text>\1\/\2.xml<\/a>"/g </xsl:text>
+ <xsl:text>\1\/\2.xml<\/a>"/g; </xsl:text>
- <xsl:text>s/home-page&gt;\(.*\)&lt;/</xsl:text>
+ <xsl:text> s/home-page&gt;(.*)&lt;/</xsl:text>
<xsl:text>home-page><a href="\1"></xsl:text>
- <xsl:text>\1<\/a>\&lt;/g </xsl:text>
+ <xsl:text>\1<\/a>\&lt;/g; </xsl:text>
- <xsl:text>s/cvs-web&gt;\(.*\)&lt;/</xsl:text>
+ <xsl:text> s/cvs-web&gt;(.*)&lt;/</xsl:text>
<xsl:text>cvs-web><a href="\1"></xsl:text>
- <xsl:text>\1<\/a>\&lt;/g </xsl:text>
+ <xsl:text>\1<\/a>\&lt;/g; </xsl:text>
- <xsl:text>s/url *href="\(.*\)"/</xsl:text>
- <xsl:text>url href="<a href="\1">\1<\/a>"/g </xsl:text>
+ <xsl:text> s/url *href="(.*)"/</xsl:text>
+ <xsl:text>url href="<a href="\1">\1<\/a>"/g; </xsl:text>
- <xsl:text>s/project *name="\([^ ]*\)"/</xsl:text>
+ <xsl:text> s/project *name="(\S*)"/</xsl:text>
<xsl:text>project name="<font color="red"></xsl:text>
- <xsl:text>\1<\/font>"/g </xsl:text>
+ <xsl:text>\1<\/font>"/g; </xsl:text>
<xsl:for-each select="*[@defined-in]">
- <xsl:text>s/ project="</xsl:text>
+ <xsl:text> s/ project="</xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>"/ project="<a href="</xsl:text>
<xsl:value-of select="name()"/>
@@ -51,14 +55,13 @@
<xsl:value-of select="@defined-in"/>
<xsl:text>.html"></xsl:text>
<xsl:value-of select="@name"/>
- <xsl:text><\/a>"/g </xsl:text>
+ <xsl:text><\/a>"/g; </xsl:text>
</xsl:for-each>
- <xsl:text>1i\ </xsl:text>
- <xsl:text><PRE> </xsl:text>
- <xsl:text>$a\ </xsl:text>
- <xsl:text></PRE> </xsl:text>
+ <xsl:text> print; </xsl:text>
+ <xsl:text>} </xsl:text>
+ <xsl:text>print "</PRE>\n"; </xsl:text>
</xsl:template>
1.13 +2 -2 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.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- win2k.xsl 2001/09/18 16:27:46 1.12
+++ win2k.xsl 2001/09/18 19:14:51 1.13
@@ -119,9 +119,9 @@
</xsl:template>
<xsl:template match="sed">
- <xsl:text>sed -f </xsl:text>
+ <xsl:text>perl </xsl:text>
<xsl:value-of select="@script"/>
- <xsl:text> < ..\%1 %OUT% </xsl:text>
+ <xsl:text> ..\%1 %OUT% </xsl:text>
</xsl:template>
<!-- =================================================================== -->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]