Fix &base; definition and add DOC_PREFIX_REL for autogen.ent.
Approved by: doceng (implicit)
This commit is contained in:
parent
35babe0ae5
commit
89a02c01d7
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=38827
2 changed files with 10 additions and 3 deletions
|
@ -46,6 +46,13 @@ LANGCODE?= ${_LANGCODE}
|
|||
# normalize DOC_PREFIX
|
||||
DOC_PREFIX!= ${REALPATH} ${DOC_PREFIX}
|
||||
|
||||
# Used for &base;
|
||||
.if ${LANGCODE} == "en_US.ISO8859-1"
|
||||
DOC_PREFIX_REL= ${.CURDIR:S,^${DOC_PREFIX},,:C,/[^/]+,/..,g:S,^/..,,:S,^/,,:S,^$,.,:S,^/..,,}
|
||||
.else
|
||||
DOC_PREFIX_REL= ${.CURDIR:S,^${DOC_PREFIX},,:C,/[^/]+,/..,g:S,^/..,,:S,^/,,:S,^$,.,}
|
||||
.endif
|
||||
|
||||
.if !defined(URL_RELPREFIX)
|
||||
URLS_ABSOLUTE= YES
|
||||
.elif !defined(URLS_ABSOLUTE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue