If NO_LANGCODE_IN_DESTDIR is defined, don't put the language code in

DESTDIR.  This avoids redundant information in the path when DOCDIR
points to some directory that already implies (or specifies) a certain
language.  This is the case with the web site, where the release notes
are already installed under a language-specific directory.  This
behavior is not being made mandatory because it might still be useful
to install all the translations in one directory, such as during
testing, or in a hypothetical release notes archive.  Furthermore, it
is not being made the default because that breaks consistency with
stuff under doc/.

Reviewed by:	bmah
This commit is contained in:
Dima Dorfman 2001-09-03 14:39:32 +00:00
parent d3f265038e
commit f6b1b0cc33
5 changed files with 20 additions and 0 deletions

View File

@ -1,7 +1,11 @@
# $FreeBSD$
RELN_ROOT?= ${.CURDIR}/../..
.ifdef NO_LANGCODE_IN_DESTDIR
DESTDIR?= ${DOCDIR}/errata
.else
DESTDIR?= ${DOCDIR}/en_US.ISO8859-1/errata
.endif
DOC?= article
FORMATS?= html

View File

@ -1,3 +1,7 @@
# $FreeBSD$
.ifdef NO_LANGCODE_IN_DESTDIR
DESTDIR?= ${DOCDIR}/hardware/${.CURDIR:T}
.else
DESTDIR?= ${DOCDIR}/en_US.ISO8859-1/hardware/${.CURDIR:T}
.endif

View File

@ -1,3 +1,7 @@
# $FreeBSD$
.ifdef NO_LANGCODE_IN_DESTDIR
DESTDIR?= ${DOCDIR}/installation/${.CURDIR:T}
.else
DESTDIR?= ${DOCDIR}/en_US.ISO8859-1/installation/${.CURDIR:T}
.endif

View File

@ -1,7 +1,11 @@
# $FreeBSD$
RELN_ROOT?= ${.CURDIR}/../..
.ifdef NO_LANGCODE_IN_DESTDIR
DESTDIR?= ${DOCDIR}/readme
.else
DESTDIR?= ${DOCDIR}/en_US.ISO8859-1/readme
.endif
DOC?= article
FORMATS?= html

View File

@ -1,3 +1,7 @@
# $FreeBSD$
.ifdef NO_LANGCODE_IN_DESTDIR
DESTDIR?= ${DOCDIR}/relnotes/${.CURDIR:T}
.else
DESTDIR?= ${DOCDIR}/en_US.ISO8859-1/relnotes/${.CURDIR:T}
.endif