Author: vedge
Date: 2008-03-14 00:36:51 -0300 (Fri, 14 Mar 2008)
New Revision: 699

Added:
   trunk/ml.xsl
Modified:
   trunk/Makefile
   trunk/mkify.pl
Log:
+ml.xsl


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile      2008-03-14 03:04:16 UTC (rev 698)
+++ trunk/Makefile      2008-03-14 03:36:51 UTC (rev 699)
@@ -7,7 +7,7 @@
 
 SHARE= hstrip.pl mkdep mkify.pl mkconfigure.pl mkprojfiles.pl \
        mkconcurrent.pl manlinks.pl cmpfiles.pl \
-       get-version.pl get-release.pl \
+       get-version.pl get-release.pl ml.xsl \
        build.common.mk build.dep.mk build.lib.mk build.man.mk \
        build.perl.mk build.prog.mk build.subdir.mk build.www.mk \
        build.po.mk build.doc.mk build.den.mk build.proj.mk

Modified: trunk/mkify.pl
===================================================================
--- trunk/mkify.pl      2008-03-14 03:04:16 UTC (rev 698)
+++ trunk/mkify.pl      2008-03-14 03:36:51 UTC (rev 699)
@@ -119,6 +119,17 @@
                my $dest = join('/', $mk, $f);
 
                MKCopy($f, $dir);
+
+               if ($type eq 'www') {
+                       mkdir('xsl');
+                       open(IN, $dir.'/ml.xsl') || die "$dir/ml.xsl: $!";
+                       open(OUT, '>xsl/ml.xsl') || die "xsl/ml.xsl: $!";
+                       foreach my $l (<IN>) {
+                               print OUT $l;
+                       }
+                       close(OUT);
+                       close(IN);
+               }
        }
 
        MKCopy('mkdep', $dir);

Added: trunk/ml.xsl
===================================================================
--- trunk/ml.xsl                                (rev 0)
+++ trunk/ml.xsl        2008-03-14 03:36:51 UTC (rev 699)
@@ -0,0 +1,19 @@
+<xsl:stylesheet version = '1.0'
+ xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
+
+<xsl:output method="html"/>
+<xsl:param name="lang"/>
+
+<xsl:template match="ml">
+  <xsl:if test="[EMAIL PROTECTED]"> 
+    <xsl:apply-templates select="*|text()"/>
+  </xsl:if>
+</xsl:template>
+
+<xsl:template match="*|@*|text()">
+   <xsl:copy>
+      <xsl:apply-templates select="*|@*|text()"/>
+   </xsl:copy>
+</xsl:template>
+
+</xsl:stylesheet>

_______________________________________________
BSDBuild-Commits mailing list
[email protected]
http://mail231.csoft.net/mailman/listinfo/bsdbuild-commits

Reply via email to