An alternative symlink method -- symlink to the directories, rather than
the directory contents. The previous mechanism didn't work in the presence of CVS/ directories (which didn't show up in my testing).
This commit is contained in:
parent
f2440ca621
commit
9fbb557a45
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=9215
2 changed files with 24 additions and 5 deletions
18
en/Makefile
18
en/Makefile
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/Makefile,v 1.61 2001/02/25 12:00:49 alex Exp $
|
||||
# $FreeBSD: www/en/Makefile,v 1.62 2001/04/17 09:05:42 nik Exp $
|
||||
.if exists(Makefile.conf)
|
||||
.include "Makefile.conf"
|
||||
.endif
|
||||
|
@ -51,8 +51,6 @@ SUBDIR+= ports
|
|||
|
||||
# These *must* be listed after the "doc" subdir, as they create symlinks
|
||||
# in to it.
|
||||
SUBDIR+= FAQ
|
||||
SUBDIR+= handbook
|
||||
SUBDIR+= tutorials
|
||||
|
||||
# Non-SGML
|
||||
|
@ -61,6 +59,8 @@ SUBDIR+= cgi
|
|||
|
||||
WEB_LANG?= ja es ru zh de
|
||||
|
||||
COOKIE= FAQ handbook
|
||||
|
||||
# Non-English
|
||||
|
||||
.if !defined(ENGLISH_ONLY) || empty(ENGLISH_ONLY)
|
||||
|
@ -73,4 +73,16 @@ SGMLOPTS+= -links -hdr ${.CURDIR}/doc.hdr -ftr ${.CURDIR}/doc.ftr
|
|||
|
||||
WEBDIR= data
|
||||
|
||||
# Handle the FAQ/ and handbook/ directories specially.
|
||||
|
||||
FAQ:
|
||||
ln -fs ${.CURDIR}/../../doc/en_US.ISO_8859-1/books/faq FAQ
|
||||
|
||||
handbook:
|
||||
ln -fs ${.CURDIR}/../../doc/en_US.ISO_8859-1/books/handbook handbook
|
||||
|
||||
afterinstall:
|
||||
ln -fs ${.CURDIR}/doc/en_US.ISO_8859-1/books/faq ${DOCINSTALLDIR}/FAQ
|
||||
ln -fs ${.CURDIR}/doc/en_US.ISO_8859-1/books/handbook ${DOCINSTALLDIR}/handbook
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# $FreeBSD: www/en/docs/Makefile,v 1.3 2001/02/24 18:04:10 nik Exp $i
|
||||
# $FreeBSD: www/en/doc/Makefile,v 1.1 2001/04/17 09:05:43 nik Exp $i
|
||||
#
|
||||
# Build the FreeBSD documentation *outside* of the www tree, and install it
|
||||
# in to the right place as necessary.
|
||||
|
@ -9,5 +9,12 @@
|
|||
# requirements here.
|
||||
#
|
||||
|
||||
all install clean:
|
||||
all:
|
||||
(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split all)
|
||||
(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split DOCDIR=${.CURDIR} install)
|
||||
|
||||
install clean:
|
||||
(unset DESTDIR || true; cd ${.CURDIR}/../../../doc/en_US.ISO_8859-1 && ${MAKE} FORMATS=html-split DOCDIR=${DESTDIR}/data/doc ${.TARGET})
|
||||
.if make(clean)
|
||||
rm -rf en* handbook faq
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue