Index: chapter.sgml
===================================================================
RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml,v
retrieving revision 1.233
diff -u -r1.233 chapter.sgml
--- chapter.sgml 24 Dec 2008 21:47:59 -0000 1.233
+++ chapter.sgml 26 Dec 2008 01:38:45 -0000
@@ -79,6 +79,12 @@
+ How to keep your documentation up to date with
+ CVSup and
+ Docsnap.
+
+
+ The difference between the two development
branches: &os.stable; and &os.current;.
@@ -575,6 +581,154 @@
&prompt.root; portsnap fetch update
+
+ Documentation Updating
+
+ There are several ways to update the &os; Documentation Set.
+ In this section, some methods for updating documentation shipped
+ with each &os; release are presented. Each solution has its
+ advantages and disadvantages, one should choose the most suitable
+ for his or her needs.
+
+
+ Using CVSup
+
+ Similar to the base system and kernel sources (the world),
+ documentation itself could be also updated by rebuilding it on
+ a regular basis. To achieve this, one will need
+ CVSup and the tools used in the &os;
+ Documentation Project to be installed:
+
+ &prompt.root; pkg_add -r docproj
+&prompt.root; pkg_add -r cvsup-without-gui
+
+
+ When no &postscript; or PDF documentation required, one
+ might consider installing textproc/docproj-nojadetex
+ instead.
+
+
+ For the first time, source for the documentation set need to
+ be checked out:
+
+ &prompt.root; cvsup -h cvsup10.FreeBSD.org -g -L 2 /usr/share/examples/cvsup/doc-supfile
+
+ Once /usr/doc
+ has been established, updating documentation is just as easy as
+ the commands below:
+
+ &prompt.root; cd /usr/doc
+&prompt.root; make update install clean
+
+ The following &man.make.1; variables can be used for
+ controlling the process of update. Note that their default
+ values can be modified by adding them to
+ /etc/make.conf, so they are not needed to
+ be set in the command line every time.
+
+
+
+ DOC_LANG
+
+
+ The list languages and encodings to build and install,
+ e.g. en_US.ISO8859-1 for the English
+ documentation only.
+
+
+
+
+ FORMATS
+
+
+ A single format or a list of output formats to be
+ built. Currently, html,
+ html-split, txt,
+ ps, pdf, and
+ rtf are supported.
+
+
+
+
+ SUPHOST
+
+
+ The hostname of the CVSup
+ server to use when updating.
+
+
+
+
+ For more make variables involved in the process, see
+ &man.make.conf.5;.
+
+
+
+
+
+
+ Pav
+ Lucistnik
+ Based on a home page written by
+
+
+
+
+ Using Docsnap
+
+ Docsnap is an
+ rsync repository for updating
+ installed &os; Documentation in a relatively easy and fast way.
+ In this method, a Docsnap
+ server tracks the documentation sources, and builds
+ them in HTML format every hour. However, there is no need for
+ installing the port textproc/docproj, because no SGML
+ sources needed to be built and the differences alone are
+ transmitted over the network.
+
+ The only requirement for using technique is the net/rsync port or package:
+
+ &prompt.root; pkg_add -r rsync
+
+
+ It is originally recommended for updating documentation
+ installed to /usr/share/doc, but the
+ following examples could be adapted to other directories as
+ well. For user directories, it does not even require
+ root privileges.
+
+
+ To update the documentation set, issue the following
+ command:
+
+ &prompt.root; rsync -rltvz docsnap.sk.FreeBSD.org::docsnap /usr/share/doc
+
+
+ There is only one Docsnap
+ server at the moment, given above.
+
+
+ Do not use the flag here as there
+ are some items installed into /usr/share/doc during
+ make installworld, which accidentally would
+ get wiped out. To clean up, use this command instead:
+
+ &prompt.root; rsync -rltvz --delete docsnap.sk.FreeBSD.org::docsnap/??_??\.\* /usr/share/doc
+
+ If a subset of documentation needs to be updated, for
+ example, English documentation only, the following command
+ should be used:
+
+ &prompt.root; rsync -rltvz docsnap.sk.FreeBSD.org::docsnap/en_US.ISO8859-1 /usr/share/doc
+
+
+
Tracking a Development Branch-CURRENT