GayBSD documentation tree
Find a file
Nik Clayton 69d3531da9 [ Once more, but this time, with feeling. Oh, "Hello Paul" :-) ]
Welcome to the porter's handbook, based on section 4.4 from the Handbook.

To do this for your language, checkout a copy of the docs, and:

    cd doc/<lang>/books/
    mkdir porter-handbook
    cd porter-handbook
    cp ../handbook/ports/chapter.sgml book.sgml

Now edit book.sgml.  Add the following just after the comment at the top
of the file (and before the <chapter> element (everything between the
two '===')

===
<!DOCTYPE BOOK PUBLIC "-//FreeBSD//DTD DocBook V3.1-Based Extension//EN" [
<!ENTITY % man PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN">
%man;

<!ENTITY % bookinfo PUBLIC "-//FreeBSD//ENTITIES DocBook BookInfo Entities//EN">
%bookinfo;

<!ENTITY % authors SYSTEM "../handbook/authors.ent"> %authors;
<!ENTITY % mailing-lists SYSTEM "../handbook/mailing-lists.ent">
%mailing-lists;
]>

<book>
  <bookinfo>
    <title>FreeBSD Porter's Handbook</title>

    <authorgroup>
      <author>
        <surname>The FreeBSD Documentation Project</surname>
        <affiliation>
          <address>
            <email>doc@@FreeBSD.org</email>
          </address>
        </affiliation>
      </author>
    </authorgroup>

    <pubdate>April 2000</pubdate>

    <copyright>
      <year>2000</year>
    </copyright>

    &bookinfo.legalnotice;
  </bookinfo>
==

Delete all the text from

    <chapter id="ports">

to

    <sect1 id="porting">

*and* the <title> for that section.  You should be left with

    <sect2>
      <title>Making a port yourself</title>

      ...

(obviously, translated to your language).

Next, do a search and replace of the various sectional elements, replacing
them with the element two-up in the hierarchy.

In other words,

    sect2    becomes    chapter
    sect3    becomes    sect1
    sect4    becomes    sect2

There's nothing below <sect4> in that document.

Go to the bottom of the file, you'll see

    </chapter>
  </sect1>
</chapter>

Delete the last two lines, and add a "</book>" to close off the content
properly.

Finally, in the comment section at the end delete the

    sgml-declaration: "../chapter.decl"

and

    sgml-parent-document: ("../book.sgml" "part" "chapter")

lines.

Finally, copy over the "Makefile" and "freebsd.dsl" file from the English
directory.  You will need to translate the two lines of text in freebsd.dsl

Once you've done that your copy of the file will be the same as the one
I committed as version 1.1 in the English directory.

This file won't build cleanly.  This is because there are still some
<xref>s and <link>s which point back to chapters in the Handbook.  We'll
clean those up shortly.  When that's done, and the doc is linked in to
the website we can remove the text from the main Handbook.

We're also sharing some entity files with the Handbook as well.  At the
moment those are SYSTEM entities pointing back to the Handbook copies.
I'm going to shift them in to doc/share/sgml/, with the other language
independent entities.

Oh, and the structure needs looking at.  Some of the things that are
chapters now could probably be sections inside another chapter.  This is
why I haven't changed the indentation yet, as it'll only change as we sort
out the structure.
2000-05-09 00:26:12 +00:00
en/handbook/contrib Add Frank Mayhar for p5-libapreq. 2000-03-19 06:20:31 +00:00
en_US.ISO8859-1 [ Once more, but this time, with feeling. Oh, "Hello Paul" :-) ] 2000-05-09 00:26:12 +00:00
en_US.ISO_8859-1 [ Once more, but this time, with feeling. Oh, "Hello Paul" :-) ] 2000-05-09 00:26:12 +00:00
es_ES.ISO8859-1 Give each language and encoding it's own freebsd.dsl, to contain style 2000-03-23 09:00:17 +00:00
es_ES.ISO_8859-1 Give each language and encoding it's own freebsd.dsl, to contain style 2000-03-23 09:00:17 +00:00
fr_FR.ISO8859-1 Give each language and encoding it's own freebsd.dsl, to contain style 2000-03-23 09:00:17 +00:00
fr_FR.ISO_8859-1 Give each language and encoding it's own freebsd.dsl, to contain style 2000-03-23 09:00:17 +00:00
ja_JP.eucJP Fix the incomplete example in the qandaentry of ccd 2000-05-08 01:45:45 +00:00
ru_RU.KOI8-R Bye-bye old good FAQ 2000-04-06 13:21:09 +00:00
share Do xargs only if HTML.manifest is exist. 2000-04-29 07:46:15 +00:00
zh/FAQ Correct the "ID" tag. 1999-11-12 08:34:11 +00:00
zh_TW.Big5 Give each language and encoding it's own freebsd.dsl, to contain style 2000-03-23 09:00:17 +00:00
Makefile List the French translation subdirectory. Why I didn't do this months 2000-04-30 21:58:43 +00:00
README Point the interested developer at the FDP Primer on the website for more 2000-04-13 00:27:02 +00:00

$FreeBSD$

If you plan on building a local copy of the FreeBSD documentation, or using
our toolchain in your own projects, please read

    http://www.freebsd.org/tutorials/docproj-primer/

for information about the tools and formatting languages we use.  Chapter
2 covers the software and related items you will need to install.