章 6. 網站

內容目錄
6.1. 環境變數
6.2. 建置並安裝網頁

FreeBSD 網站是 FreeBSD 文件的一部份。網站的檔案儲存在文件樹目錄,此例中是 ~/doc,的 en_US.ISO8859-1/htdocs 子目錄。

6.1. 環境變數

Several environment variables control which parts of the web site are built or installed, and to which directories.

提示:

The web build system uses make(1), and considers variables to be set when they have been defined, even if they are empty. The examples here show the recommended ways of defining and using these variables. Setting or defining these variables with other values or methods might lead to unexpected surprises.

DESTDIR

DESTDIR specifies the path where the web site files are to be installed.

This variable is best set with env(1) or the user shell's method of setting environment variables, setenv for csh(1) or export for sh(1).

ENGLISH_ONLY

Default: undefined. Build and include all translations.

ENGLISH_ONLY=yes: use only the English documents and ignore all translations.

WEB_ONLY

Default: undefined. Build both the web site and all the books and articles.

WEB_ONLY=yes: build or install only HTML pages from the en_US.ISO8859-1/htdocs directory. Other directories and documents, including books and articles, will be ignored.

WEB_LANG

Default: undefined. Build and include all the available languages on the web site.

Set to a space-separated list of languages to be included in the build or install. The formats are the same as the directory names in the document root directory. For example, to include the German and French documents:

WEB_LANG="de_DE.ISO8859-1 fr_FR.ISO8859-1"

WEB_ONLY, WEB_LANG, and ENGLISH_ONLY are make(1) variables and can be set in /etc/make.conf, Makefile.inc, as environment variables on the command line, or in dot files.

本文及其他文件,可由此下載: ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/

若有 FreeBSD 方面疑問,請先閱讀 FreeBSD 相關文件,如不能解決的話,再洽詢 <questions@FreeBSD.org>。

關於本文件的問題,請洽詢 <doc@FreeBSD.org>。