svn commit: r38891 - head/share/mk
Gavin Atkinson
gavin at FreeBSD.org
Sat May 26 00:08:01 UTC 2012
Author: gavin
Date: Sat May 26 00:08:00 2012
New Revision: 38891
URL: http://svn.freebsd.org/changeset/doc/38891
Log:
In the old CVS world, web pages would end up with the modified date and
time on the bottom of each page:
Last modified: 2010/05/09 21:07:40
Since the move to Subversion, the $FreeBSD$ string is slightly different
and so the code that does this no longer works correctly, causing the
output appears as:
Last modified: 38826 2012-05-17
Arguably, having the SVN revision number in the output is useful,
however this wasn't intentional - and instead appears to be an
oversight.
This change both fixes the missing date and adds extra information,
producing the following output:
Last modified: 2012-05-17 19:12:14Z
(head/en_US.ISO8859-1/htdocs/internet.sgml r38826)
Adding the path to the source file will hopefully make it much easier
for people wishing to contribute to the page to find the source
Approved by: bcr (mentor)
M mk/web.site.mk
Modified:
head/share/mk/web.site.mk
Modified: head/share/mk/web.site.mk
==============================================================================
--- head/share/mk/web.site.mk Fri May 25 23:22:07 2012 (r38890)
+++ head/share/mk/web.site.mk Sat May 26 00:08:00 2012 (r38891)
@@ -178,7 +178,7 @@ LOCALTOP!= ${ECHO_CMD} ${CANONPREFIX} |
DIR_IN_LOCAL!= ${ECHO_CMD} ${CANONPREFIX} | ${PERL} -pe 's@^[^/]+/?@@;'
PREHTMLOPTS?= -revcheck "${LOCALTOP}" "${DIR_IN_LOCAL}" ${PREHTMLFLAGS}
.else
-DATESUBST?= 's/<!ENTITY date[ \t]*"$$Free[B]SD. .* \(.* .*\) .* .* $$">/<!ENTITY date "Last modified: \1">/'
+DATESUBST?= 's/<!ENTITY date[ \t]*"$$Free[B]SD. \(.*\) \(.*\) \(.* .*\) .* $$">/<!ENTITY date "Last modified: \3 \(\1 r\2\)">/'
# Force override base to point to http://www.FreeBSD.org/. Note: This
# is used for http://security.FreeBSD.org/ .
.if WITH_WWW_FREEBSD_ORG_BASE
More information about the svn-doc-head
mailing list