Add a make variable WITH_WWW_FREEBSD_ORG_BASE which overrides the base
variable to point to http://www.FreeBSD.org/ - This is very useful for when you e.g. are building part of the website, like we do for http://security.FreeBSD.org/, and do not want broken links. This knob only works for SGML files, which is enough for what I need. We do not run XML files through sed so the same hack as used for SGML cannot be used.
This commit is contained in:
parent
00bd1c03b5
commit
deee4063fe
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=27824
1 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
# bsd.web.mk
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.71 2005/12/31 15:19:30 hrs Exp $
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.72 2006/02/25 23:19:40 hrs Exp $
|
||||
|
||||
#
|
||||
# Build and install a web site.
|
||||
|
@ -191,7 +191,12 @@ 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">/'
|
||||
PREHTML?= ${SED} -e ${DATESUBST}
|
||||
# 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
|
||||
BASESUBST?= -e 's/<!ENTITY base CDATA ".*">/<!ENTITY base CDATA "http:\/\/www.FreeBSD.org">/'
|
||||
.endif
|
||||
PREHTML?= ${SED} -e ${DATESUBST} ${BASESUBST}
|
||||
.endif
|
||||
|
||||
GENDOCS+= ${DOCS:M*.sgml:S/.sgml$/.html/g}
|
||||
|
|
Loading…
Reference in a new issue