Simplifiy DOC_PREFIX_REL.
Approved by: doceng (implicit)
This commit is contained in:
parent
a11323de18
commit
04627121fa
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=38830
1 changed files with 1 additions and 5 deletions
|
@ -47,11 +47,7 @@ LANGCODE?= ${_LANGCODE}
|
|||
DOC_PREFIX!= ${REALPATH} ${DOC_PREFIX}
|
||||
|
||||
# Used for &base;
|
||||
.if ${LANGCODE} == "en_US.ISO8859-1"
|
||||
DOC_PREFIX_REL= ${.CURDIR:S,^${DOC_PREFIX}/${LANGCODE},,:C,/[^/]+,/..,g:S,^/..,,:S,^/,,:S,^$,.,:S,^/..,,}
|
||||
.else
|
||||
DOC_PREFIX_REL= ${.CURDIR:S,^${DOC_PREFIX},,:C,/[^/]+,/..,g:S,^/..,,:S,^/,,:S,^$,.,}
|
||||
.endif
|
||||
DOC_PREFIX_REL= ${.CURDIR:S,^${DOC_PREFIX}/${LANGCODE},,:C,/[^/]+,/..,g:S,^/..,,:S,^/,,:S,^$,.,}
|
||||
|
||||
.if !defined(URL_RELPREFIX)
|
||||
URLS_ABSOLUTE= YES
|
||||
|
|
Loading…
Reference in a new issue