Simplifiy DOC_PREFIX_REL.

Approved by:	doceng (implicit)
This commit is contained in:
Hiroki Sato 2012-05-17 21:57:53 +00:00
parent a11323de18
commit 04627121fa
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=38830

View file

@ -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