Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2012 00:08:00 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r38891 - head/share/mk
Message-ID:  <201205260008.q4Q081cA041034@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205260008.q4Q081cA041034>