Date: Tue, 23 Nov 1999 16:38:59 +0900 From: Jun Kuriyama <kuriyama@sky.rim.or.jp> To: Documentation Project <doc@freebsd.org> Subject: Substitution $FreeBSD$ like as $Date$ Message-ID: <14394.17555.536456.94513K@localhost.sky.rim.or.jp>
index | next in thread | raw e-mail
This patch makes footer of web pages "Last modified:" indicator
instead of "$FreeBSD$" tag. I've tested this patch and looks fine.
Any comments?
Index: index.sgml
===================================================================
RCS file: /home/ncvs/www/en/index.sgml,v
retrieving revision 1.66
diff -u -r1.66 index.sgml
--- index.sgml 1999/10/30 10:01:58 1.66
+++ index.sgml 1999/11/23 05:19:26
@@ -312,7 +312,7 @@
<tr>
<td align="left" valign="top"><small><a
href="&base;/mailto.html">Contact us</a><br>
- $FreeBSD: www/en/index.sgml,v 1.66 1999/10/30 10:01:58 wosch Exp $</small></td>
+ &date;</small></td>
<td align="right" valign="top"><small><a href="copyright/">Copyright</a> © 1995-1999
FreeBSD Inc.<br>
Index: web.mk
===================================================================
RCS file: /home/ncvs/www/en/web.mk,v
retrieving revision 1.24
diff -u -r1.24 web.mk
--- web.mk 1999/09/19 11:56:18 1.24
+++ web.mk 1999/11/23 07:30:01
@@ -65,9 +65,11 @@
SGMLNORMFLAGS= -d ${SGMLNORMOPTS} -c ${CATALOG}
GENDOCS+= ${DOCS:M*.sgml:S/.sgml$/.html/g}
ORPHANS:= ${ORPHANS:N*.sgml}
+DATESUBST= 's/<!ENTITY date[ \t]*"$$FreeBSD: .* \(.* .*\) .* .* $$">/<!ENTITY date "Last modified: \1">/'
.sgml.html:
- ${SGMLNORM} ${SGMLNORMFLAGS} ${.IMPSRC} > ${.TARGET}
+ sed -e ${DATESUBST} ${.IMPSRC} |\
+ ${SGMLNORM} ${SGMLNORMFLAGS} > ${.TARGET}
###
# file.docb --> file.html
Jun Kuriyama // kuriyama@sky.rim.or.jp
// kuriyama@FreeBSD.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14394.17555.536456.94513K>
