Use relative URLs when URL_RELPREFIX is defined and URLS_ABSOLUTE

is not defined.

- URL_RELPREFIX must always point the top page's URL
  (http://www.FreeBSD.org) in relative form, defined in Makefile.

- &url.base; can be used in doc/<langcode>/*.  It will be
  replaced with the real URL which points the top page.

For translators: Please make sure to define URL_RELPREFIX to
point the top page.  The localized docs have different directory
hierarchy in its URL from the English version.

Tested by:	den
This commit is contained in:
Hiroki Sato 2004-07-06 15:09:55 +00:00
parent 59859e64cb
commit 84f8ee0a15
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=21373
35 changed files with 141 additions and 75 deletions
en_US.ISO8859-1
articles
committers-guide
contributing
contributors
explaining-bsd
mailing-list-faq
new-users
books
arch-handbook
developers-handbook
faq
fdp-primer
handbook
Makefile
advanced-networking
book.sgml
cutting-edge
eresources
install
introduction
l10n
pgpkeys
ports
ppp-and-slip
share

View file

@ -15,5 +15,7 @@ INSTALL_ONLY_COMPRESSED?=
SRCS= article.sgml
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -685,11 +685,11 @@ alias scvs env CVS_RSH=ssh cvs -d <replaceable>user</replaceable>@ncvs.FreeBSD.o
</itemizedlist>
<para>You will almost certainly get a conflict because
of the <literal>$Id: article.sgml,v 1.197 2004-07-06 14:25:53 den Exp $</literal> (or in FreeBSD's case,
of the <literal>$Id: article.sgml,v 1.198 2004-07-06 15:09:51 hrs Exp $</literal> (or in FreeBSD's case,
<literal>$<!-- stop expansion -->FreeBSD<!-- stop expansion -->$</literal>)
lines, so you will have to edit the file to resolve the conflict
(remove the marker lines and the second <literal>$Id: article.sgml,v 1.197 2004-07-06 14:25:53 den Exp $</literal> line,
leaving the original <literal>$Id: article.sgml,v 1.197 2004-07-06 14:25:53 den Exp $</literal> line intact).</para>
(remove the marker lines and the second <literal>$Id: article.sgml,v 1.198 2004-07-06 15:09:51 hrs Exp $</literal> line,
leaving the original <literal>$Id: article.sgml,v 1.198 2004-07-06 15:09:51 hrs Exp $</literal> line intact).</para>
</listitem>
<listitem>
@ -1236,7 +1236,7 @@ SUCH DAMAGE.</programlisting>
</listitem>
<listitem>
<para><ulink url="&url.main;/support.html">http://www.FreeBSD.org/support.html</ulink></para>
<para><ulink url="&url.base;/support.html">http://www.FreeBSD.org/support.html</ulink></para>
</listitem>
<listitem>
@ -1505,7 +1505,7 @@ docs:Documentation Bug:freebsd-doc:</programlisting>
<listitem>
<para>Jacques is the
<ulink url="&url.main;/security/">FreeBSD Security
<ulink url="&url.base;/security/">FreeBSD Security
Officer</ulink>
and oversees the &a.security-officer;.
</para>
@ -2740,7 +2740,7 @@ docs:Documentation Bug:freebsd-doc:</programlisting>
<step>
<para>The procedure to update the <ulink
url="&url.main;/ports/index.html">ports web pages</ulink>
url="&url.base;/ports/index.html">ports web pages</ulink>
to reflect the new category is not yet defined.</para>
</step>

View file

@ -13,5 +13,7 @@ INSTALL_ONLY_COMPRESSED?=
SRCS= article.sgml
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -254,7 +254,7 @@ FreeBSD Entities//EN"> %freebsd;
<para>If you find a bug or are submitting a specific change,
please report it using the &man.send-pr.1; program or its
<ulink url="&url.main;/send-pr.html">WEB-based
<ulink url="&url.base;/send-pr.html">WEB-based
equivalent</ulink>. Try to fill-in each field of the bug
report. Unless they exceed 65KB, include any patches directly
in the report. If the patch is suitable to be applied to the

View file

@ -20,5 +20,7 @@ SRCS+= contrib.core.sgml
SRCS+= contrib.corealumni.sgml
SRCS+= contrib.develalumni.sgml
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -384,7 +384,7 @@
<sect1 id="staff-doc">
<title>The FreeBSD Documentation Project</title>
<para>The <ulink url="&url.main;/docproj/index.html">FreeBSD
<para>The <ulink url="&url.base;/docproj/index.html">FreeBSD
Documentation Project</ulink> is responsible for a number of different
services, each service being run by an individual and his
<emphasis>deputies</emphasis> (if any):</para>
@ -486,7 +486,7 @@
<variablelist>
<varlistentry>
<term><ulink
url="&url.main;/docproj/index.html">Documentation
url="&url.base;/docproj/index.html">Documentation
Project Manager</ulink></term>
<listitem>
@ -555,7 +555,7 @@
</varlistentry>
<varlistentry>
<term><ulink url="&url.main;/security/index.html">Security
<term><ulink url="&url.base;/security/index.html">Security
Officers</ulink></term>
<listitem>
@ -564,7 +564,7 @@
</varlistentry>
<varlistentry>
<term><ulink url="&url.main;/support.html#cvs">Source
<term><ulink url="&url.base;/support.html#cvs">Source
Repository Managers</ulink></term>
<listitem>
@ -583,7 +583,7 @@
</varlistentry>
<varlistentry>
<term><ulink url="&url.main;/ports/index.html">Ports
<term><ulink url="&url.base;/ports/index.html">Ports
Manager</ulink></term>
<listitem>
@ -620,7 +620,7 @@
</varlistentry>
<varlistentry>
<term><ulink url="&url.main;/support.html#gnats">GNATS
<term><ulink url="&url.base;/support.html#gnats">GNATS
Administrator</ulink></term>
<listitem>
@ -637,7 +637,7 @@
</varlistentry>
<varlistentry>
<term><ulink url="&url.main;/donations/index.html">Donations Liaison Office</ulink></term>
<term><ulink url="&url.base;/donations/index.html">Donations Liaison Office</ulink></term>
<listitem>
<para>&a.donations;</para>

View file

@ -15,5 +15,7 @@ INSTALL_ONLY_COMPRESSED?=
SRCS= article.sgml
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -170,7 +170,7 @@
<para>386BSD never became a stable operating system. Instead, two other
projects split off from it in 1993:
<ulink url="http://www.NetBSD.org/">NetBSD</ulink> and
<ulink url="&url.main;/index.html">FreeBSD</ulink>. The two projects
<ulink url="&url.base;/index.html">FreeBSD</ulink>. The two projects
originally diverged due to differences in patience waiting for
improvements to 386BSD: the NetBSD people started early in the year,
and the first version of FreeBSD was not ready until the end of the
@ -550,7 +550,7 @@
<para>In addition, each of the projects has a list of consultants for
hire:
<ulink url="&url.main;/commercial/consulting_bycat.html">FreeBSD</ulink>,
<ulink url="&url.base;/commercial/consulting_bycat.html">FreeBSD</ulink>,
<ulink url="http://www.netbsd.org/gallery/consultants.html">NetBSD</ulink>,
and <ulink url="http://www.openbsd.org/support.html">OpenBSD</ulink>.</para>
</sect2>

View file

@ -20,5 +20,7 @@ WITH_ARTICLE_TOC?=YES
# SGML content
SRCS= article.sgml
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -52,7 +52,7 @@
or as plain text, PostScript, PDF, etc. from the <ulink
url="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">&os; FTP
server</ulink>. You may also want to <ulink
url="&url.main;/search/index.html">Search the
url="&url.base;/search/index.html">Search the
FAQ</ulink>.</para>
</abstract>
</articleinfo>
@ -203,9 +203,9 @@
you may first need to familiarize yourself with the
software, and all the social history around it, by
reading the numerous
<ulink url="&url.main;/docs.html#books">books</ulink>
<ulink url="&url.base;/docs.html#books">books</ulink>
and
<ulink url="&url.main;/docs.html#articles">articles</ulink>
<ulink url="&url.base;/docs.html#articles">articles</ulink>
that are available. Items of particular interest
include the <ulink
url="../../books/faq/index.html">
@ -302,7 +302,7 @@
<para>Please use an appropriate human language for a
particular mailing list. Many non-English mailing
lists are
<ulink url="&url.main;/support.html#mailing-list-languages">
<ulink url="&url.base;/support.html#mailing-list-languages">
available</ulink>.</para>
<para>For the ones that are not, we do appreciate that many
@ -397,7 +397,7 @@
<filename>Makefiles</filename>, where <literal>tab</literal>
is a significant character. This is a very common,
and very annoying, problem with submissions to the
<ulink url="&url.main;/support.html#gnats">
<ulink url="&url.base;/support.html#gnats">
GNATS Problem Reports database</ulink>.
<filename>Makefiles</filename> with tabs changed to either
spaces, or the annoying <literal>=3B</literal> escape

View file

@ -804,7 +804,7 @@
edit files, so you can get everything up and running. There is
a great deal of information in the FreeBSD handbook (which is
probably on your hard drive) and <ulink
URL="&url.main;/index.html">FreeBSD's web site</ulink>. A
URL="&url.base;/index.html">FreeBSD's web site</ulink>. A
wide variety of packages and ports are on the CDROM as well as
the web site. The handbook tells you more about how to use them
(get the package if it exists, with <command>pkg_add

View file

@ -53,5 +53,7 @@ IMAGES_LIB+= callouts/10.png
# Entities
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -48,7 +48,7 @@
helping with this project, send email to the &a.doc;.</para>
<para>The latest version of this document is always available
from the <ulink URL="&url.main;/index.html">FreeBSD World
from the <ulink URL="&url.base;/index.html">FreeBSD World
Wide Web server</ulink>. It may also be downloaded in a
variety of formats and compression options from the <ulink
url="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">FreeBSD FTP

View file

@ -39,5 +39,7 @@ SRCS+= x86/chapter.sgml
# Entities
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -61,7 +61,7 @@
helping with this project, send email to the &a.doc;.</para>
<para>The latest version of this document is always available
from the <ulink url="&url.main;/index.html">FreeBSD World
from the <ulink url="&url.base;/index.html">FreeBSD World
Wide Web server</ulink>. It may also be downloaded in a
variety of formats and compression options from the <ulink
url="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">FreeBSD FTP

View file

@ -1425,7 +1425,7 @@ DISTFILES= scheme-microcode+dist-7.3-freebsd.tgz
<para>Finally, if you find its text-based command-prompt style
off-putting, there is a graphical front-end for it (<ulink
URL="&url.main;/ports/devel.html">xxgdb</ulink>) in the ports
URL="&url.base;/ports/devel.html">xxgdb</ulink>) in the ports
collection.</para>
<para>This section is intended to be an introduction to using
@ -1752,7 +1752,7 @@ else if (pid == 0) { /* child */
<para>And doubtless many more that I have overlooked.</para>
<para>Emacs can be installed on FreeBSD using <ulink
URL="&url.main;/ports/editors.html">the Emacs
URL="&url.base;/ports/editors.html">the Emacs
port</ulink>.</para>
<para>Once it is installed, start it up and do <userinput>C-h

View file

@ -23,6 +23,7 @@ WITH_BIBLIOXREF_TITLE?=YES
# SGML content
SRCS= book.sgml
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -85,7 +85,7 @@
or as plain text, &postscript;, PDF, etc. from the <ulink
URL="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">FreeBSD FTP
server</ulink>. You may also want to <ulink
URL="&url.main;/search/index.html">Search the
URL="&url.base;/search/index.html">Search the
FAQ</ulink>.</para>
</abstract>
</bookinfo>
@ -122,14 +122,14 @@
the &i386;, known as <quote>386BSD</quote>, though very
little of the 386BSD code remains. A fuller description of
what FreeBSD is and how it can work for you may be found on
the <ulink URL="&url.main;/index.html">FreeBSD home
the <ulink URL="&url.base;/index.html">FreeBSD home
page</ulink>.</para>
<para>FreeBSD is used by companies, Internet Service Providers,
researchers, computer professionals, students and home users
all over the world in their work, education and recreation.
See some of them in the <ulink
URL="&url.main;/gallery/index.html">FreeBSD
URL="&url.base;/gallery/index.html">FreeBSD
Gallery</ulink>.</para>
<para>For more detailed information on FreeBSD, please see the
@ -378,7 +378,7 @@
treated with contempt.</para>
<para>Every day, <ulink
URL="&url.main;/releases/snapshots.html">snapshot
URL="&url.base;/releases/snapshots.html">snapshot
</ulink> releases are made based on the current state of the
-CURRENT and -STABLE branches. Distributions of the
occasional snapshot are made available. The goals
@ -1044,7 +1044,7 @@ File: +DESC (ignored)</screen>
<answer>
<para>You can find full information in the <ulink
URL="&url.main;/y2kbug.html">FreeBSD Y2K page</ulink>.</para>
URL="&url.base;/y2kbug.html">FreeBSD Y2K page</ulink>.</para>
</answer>
</qandaentry>
@ -4451,7 +4451,7 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
interest in FreeBSD can have very positive effects on FreeBSD's
long-term viability). We encourage commercial software vendors to
send their entries here for inclusion. See <ulink
URL="&url.main;/commercial/index.html">the
URL="&url.base;/commercial/index.html">the
Vendors page</ulink> for a longer list.</para>
</note>
@ -4662,7 +4662,7 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
source X11 desktop which is similar to CDE in many respects.
You might also like the look and feel of <ulink
URL="http://www.xfce.org/">xfce</ulink>. KDE and xfce are both
in the <ulink URL="&url.main;/ports/index.html">ports
in the <ulink URL="&url.base;/ports/index.html">ports
system</ulink>.</para>
</answer>
</qandaentry>
@ -4762,11 +4762,11 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
<answer>
<para>Yes! See the <ulink
URL="&url.main;/commercial/software_bycat.html#CATEGORY_DATABASE">
URL="&url.base;/commercial/software_bycat.html#CATEGORY_DATABASE">
Commercial Vendors</ulink> section of FreeBSD's Web site.</para>
<para>Also see the <ulink
URL="&url.main;/ports/databases.html">
URL="&url.base;/ports/databases.html">
Databases</ulink> section of the Ports collection.</para>
</answer>
</qandaentry>
@ -4811,7 +4811,7 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
<answer>
<para>Please take a look at <ulink
URL="&url.main;/ports/index.html">the ports page</ulink>
URL="&url.base;/ports/index.html">the ports page</ulink>
for info on software packages ported to FreeBSD. The list
currently tops &os.numports; and is growing daily, so come
back to check often or subscribe to the
@ -4932,7 +4932,7 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
<answer>
<para>Yes. Please see <ulink
URL="&url.main;/java/index.html">
URL="&url.base;/java/index.html">
http://www.FreeBSD.org/java/</ulink>.</para>
</answer>
</qandaentry>
@ -4945,7 +4945,7 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
<answer>
<para>If you are running a FreeBSD version that lags
significantly behind -CURRENT or -STABLE, you may need a ports
upgrade kit from <ulink URL="&url.main;/ports/index.html">
upgrade kit from <ulink URL="&url.base;/ports/index.html">
http://www.FreeBSD.org/ports/</ulink>. If you are up to date,
then someone might have committed a change to the port which
works for -CURRENT but which broke the port for -STABLE. Please
@ -8706,7 +8706,7 @@ Key F15 A A Menu Workplace Nop</programlisting>
<para>See the <link linkend="service-redirect">FAQ about
redirecting services</link>, the &man.natd.8; manual, or one of
the several port redirecting utilities in the <ulink
url="&url.main;/ports/index.html">ports collection</ulink> for a correct way to do
url="&url.base;/ports/index.html">ports collection</ulink> for a correct way to do
this.</para>
</answer>
</qandaentry>
@ -9062,7 +9062,7 @@ Key F15 A A Menu Workplace Nop</programlisting>
<para>This point and others are often discussed on the
mailing lists, particularly the &a.security;. Please search
the archives <ulink
url="&url.main;/search/index.html">here</ulink> for an
url="&url.base;/search/index.html">here</ulink> for an
extensive discussion. Some people are hopeful that
securelevel will soon go away in favor of a more
fine-grained mechanism, but things are still hazy in this

View file

@ -45,6 +45,7 @@ IMAGES_LIB+= callouts/5.png
# Entities
SRCS+= chapters.ent
DOC_PREFIX?= ${.CURDIR}/../../..
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"

View file

@ -122,7 +122,7 @@
<listitem>
<para>This is the main FreeBSD presence on the World Wide Web,
visible at <ulink
url="&url.main;/index.html">http://www.FreeBSD.org/</ulink>
url="&url.base;/index.html">http://www.FreeBSD.org/</ulink>
and many mirrors around the world. The web site is many people's
first exposure to FreeBSD.</para>
</listitem>

View file

@ -43,7 +43,7 @@
<itemizedlist>
<listitem>
<para><ulink url="&url.main;/docproj/index.html">The FreeBSD
<para><ulink url="&url.base;/docproj/index.html">The FreeBSD
Documentation Project web pages</ulink></para>
</listitem>

View file

@ -755,7 +755,7 @@
best suited to information that can be broken up into several
chapters, possibly with appendices and similar content as well.</para>
<para>The <ulink url="&url.main;/docs.html">FreeBSD
<para>The <ulink url="&url.base;/docs.html">FreeBSD
tutorials</ulink> are all marked up as articles, while this
document, the <ulink url="../faq/index.html">FreeBSD
FAQ</ulink>, and the <ulink
@ -2664,13 +2664,13 @@ IMAGES= chapter1/fig1.png
<para>Use:</para>
<programlisting><![ CDATA [<para>Of course, you could stop reading this document and
go to the <ulink url="&url.main;/index.html">FreeBSD
go to the <ulink url="&url.base;/index.html">FreeBSD
home page</ulink> instead.</para>]]></programlisting>
<para>Appearance:</para>
<para>Of course, you could stop reading this document and go to the
<ulink url="&url.main;/index.html">FreeBSD home page</ulink>
<ulink url="&url.base;/index.html">FreeBSD home page</ulink>
instead.</para>
</example>
</sect3>

View file

@ -214,8 +214,6 @@ pgpkeyring: pgpkeys/chapter.sgml
JADEFLAGS+= -V withpgpkeys
.endif
DOC_PREFIX?= ${.CURDIR}/../../..
.for p in ftp cvsup
SRCS+= mirrors.sgml.${p}.inc
CLEANFILES+= mirrors.sgml.${p}.inc
@ -226,6 +224,9 @@ SRCS+= eresources.sgml.www.inc
CLEANFILES+= eresources.sgml.www.inc
CLEANFILES+= eresources.sgml.www.inc.tmp
URL_RELPREFIX?= ../../../..
DOC_PREFIX?= ${.CURDIR}/../../..
.include "${DOC_PREFIX}/share/mk/doc.project.mk"
.for p in ftp cvsup

View file

@ -3313,7 +3313,7 @@ host margaux {
<para>The choice of synchronous card/TA v.s. stand-alone router is largely a
religious issue. There has been some discussion of this in
the mailing lists. We suggest you search the <ulink
url="&url.main;/search/index.html">archives</ulink> for
url="&url.base;/search/index.html">archives</ulink> for
the complete discussion.</para>
</sect2>

View file

@ -147,7 +147,7 @@
<ulink
url="http://www.freebsdmall.com/">FreeBSD Mall</ulink>. You
may also want to <ulink
url="&url.main;/search/index.html">search the
url="&url.base;/search/index.html">search the
handbook</ulink>.</para>
</abstract>
</bookinfo>

View file

@ -329,7 +329,7 @@
support them for many years. For a complete description
of the current security policy for old releases of
FreeBSD, please see <ulink
url="&url.main;/security/index.html">http://www.FreeBSD.org/security/</ulink>.</para>
url="&url.base;/security/index.html">http://www.FreeBSD.org/security/</ulink>.</para>
</footnote>
, and tracking an entire development branch just
for security reasons is likely to bring in a lot of unwanted

View file

@ -41,7 +41,7 @@
the project.</para>
<para>Archives are kept for all of the mailing lists and can be searched
using the <ulink url="&url.main;/search/index.html">FreeBSD World
using the <ulink url="&url.base;/search/index.html">FreeBSD World
Wide Web server</ulink>. The keyword searchable archive offers an
excellent way of finding answers to frequently asked questions and
should be consulted before posting a question.</para>
@ -493,7 +493,7 @@
<row>
<entry>&a.www.name;</entry>
<entry>Maintainers of <ulink url="&url.main;/index.html">www.FreeBSD.org</ulink></entry>
<entry>Maintainers of <ulink url="&url.base;/index.html">www.FreeBSD.org</ulink></entry>
</row>
</tbody>
</tgroup>
@ -776,7 +776,7 @@
Whenever possible, bugs should be submitted using the
&man.send-pr.1;
command or the <ulink
url="&url.main;/send-pr.html">WEB
url="&url.base;/send-pr.html">WEB
interface</ulink> to it.</para>
</listitem>
</varlistentry>

View file

@ -470,10 +470,10 @@ pqb0.0.1.4.0 PQB0 PCI EIDE</screen>
<para>Information about all the releases, including the errata for each
release, can be found on the
<ulink
url="&url.main;/releases/index.html">release
url="&url.base;/releases/index.html">release
information</ulink> section of the
<ulink
url="&url.main;/index.html">FreeBSD web site</ulink>.</para>
url="&url.base;/index.html">FreeBSD web site</ulink>.</para>
</sect2>
<sect2>

View file

@ -817,7 +817,7 @@
<para>Providing code is not the only way of contributing to
the project; for a more complete list of things that need
doing, please refer to the <ulink
url="&url.main;/index.html">FreeBSD Project web
url="&url.base;/index.html">FreeBSD Project web
site</ulink>.</para>
</listitem>
</varlistentry>
@ -926,7 +926,7 @@
<para>You can also view the master (and most frequently updated)
copies at <ulink
url="&url.main;/index.html">http://www.FreeBSD.org/</ulink>.</para>
url="&url.base;/index.html">http://www.FreeBSD.org/</ulink>.</para>
</sect2>
</sect1>
</chapter>

View file

@ -166,7 +166,7 @@
implementation, users may be required to compile an application
with wide or multibyte characters support, or configure it correctly.
To be able to input and process wide or multibyte characters, the <ulink
url="&url.main;/ports/index.html">FreeBSD Ports collection</ulink> has provided
url="&url.base;/ports/index.html">FreeBSD Ports collection</ulink> has provided
each language with different programs. Refer to the I18N
documentation in the respective FreeBSD Port.</para>
@ -972,7 +972,7 @@ Option "XkbOptions" "grp:caps_toggle"</programlisting>
<para>Some FreeBSD contributors have translated parts of FreeBSD to
other languages. They are available through links on the <ulink
url="&url.main;/index.html">main site</ulink> or in
url="&url.base;/index.html">main site</ulink> or in
<filename>/usr/share/doc</filename>.</para>
</sect2>
</sect1>

View file

@ -17,7 +17,7 @@
<para>In case you need to verify a signature or send encrypted email
to one of the officers or developers a number of keys are provided
here for your convenience. A complete keyring of FreeBSD.org
users is available for download from <ulink url="&url.main;/doc/pgpkeyring.txt">http://www.FreeBSD.org/doc/pgpkeyring.txt</ulink>.</para>
users is available for download from <ulink url="&url.base;/doc/pgpkeyring.txt">http://www.FreeBSD.org/doc/pgpkeyring.txt</ulink>.</para>
<sect1 id="pgpkeys-officers">
<title>Officers</title>

View file

@ -247,7 +247,7 @@
<listitem>
<para>The FreeBSD web site maintains an up-to-date searchable
list of all the available applications, at <ulink
url="&url.main;/ports/index.html">http://www.FreeBSD.org/ports/</ulink>.
url="&url.base;/ports/index.html">http://www.FreeBSD.org/ports/</ulink>.
The ports are divided into categories, and you may either
search for an application by name (if you know it), or see
all the applications available in a category.</para>
@ -681,7 +681,7 @@ docbook =
<para>Before we get into that, however, you will need to choose a
port to install. There are a few ways to do this, with the
easiest method being the <ulink
url="&url.main;/ports/index.html">ports listing on the FreeBSD
url="&url.base;/ports/index.html">ports listing on the FreeBSD
web site</ulink>. You can browse through the ports listed there
or use the search function on the site. Each port also includes
a description so you can read a bit about each port before

View file

@ -2755,7 +2755,7 @@ water.CS.Example localhost.Example. UGH 34 47641234 lo0 - 0.438
system for this yet, please see the tutorial for configuring
dialup services; if you have a World-Wide Web browser available,
browse the list of tutorials at <ulink
url="&url.main;/index.html">http://www.FreeBSD.org/</ulink>.
url="&url.base;/index.html">http://www.FreeBSD.org/</ulink>.
You may also want to check the manual pages for &man.sio.4; for
information on the serial port device driver and &man.ttys.5;,
&man.gettytab.5;, &man.getty.8;, &amp; &man.init.8; for

View file

@ -106,6 +106,13 @@ WWW_LANGCODE?= ${_WWW_LANGCODE}
DOC_PREFIX!= ${REALPATH} ${DOC_PREFIX}
WEB_PREFIX!= ${REALPATH} ${WEB_PREFIX}
.if !defined(URL_RELPREFIX)
URLS_ABSOLUTE= YES
.elif !defined(URLS_ABSOLUTE)
_URL_RELPREFIX_LEVEL!= set -- ${URL_RELPREFIX:S,/$,,:S,/, ,g}; echo "$$\#"
URL_RELPREFIX_ENT= freebsd.urls.relprefix.${_URL_RELPREFIX_LEVEL}
.endif
# ------------------------------------------------------------------------
#
# mirrors.xml dependency.
@ -168,11 +175,14 @@ CLEANFILES+= ${XML_MIRRORS}.sort.tmp
# when URLS_ABSOLUTE is specified, make
# %freebsd.urls.absolute; "INCLUDE".
#
.if defined(URLS_ABSOLUTE)
HTMLFLAGS+= -ifreebsd.urls.absolute
SGMLNORMFLAGS+= -ifreebsd.urls.absolute
NSGMLSFLAGS+= -ifreebsd.urls.absolute
.elif defined(URL_RELPREFIX_ENT) && !empty(URL_RELPREFIX_ENT)
HTMLFLAGS+= -i${URL_RELPREFIX_ENT}
SGMLNORMFLAGS+= -i${URL_RELPREFIX_ENT}
NSGMLSFLAGS+= -i${URL_RELPREFIX_ENT}
.endif
# for ascii and printable format, always use URLS_ABSOLUTE.

View file

@ -1,13 +1,52 @@
<!-- $FreeBSD$ -->
<!ENTITY % freebsd.urls.absolute "IGNORE">
<!ENTITY % freebsd.urls.relprefix.1 "IGNORE">
<!ENTITY % freebsd.urls.relprefix.2 "IGNORE">
<!ENTITY % freebsd.urls.relprefix.3 "IGNORE">
<!ENTITY % freebsd.urls.relprefix.4 "IGNORE">
<!ENTITY % freebsd.urls.relprefix.5 "IGNORE">
<!ENTITY % freebsd.urls.relprefix.6 "IGNORE">
<!ENTITY % freebsd.urls.relprefix.7 "IGNORE">
<!ENTITY % freebsd.urls.relprefix.8 "IGNORE">
<![%freebsd.urls.absolute;[
<!-- Do not edit: start here -->
<![%freebsd.urls.relprefix.1;[
<!ENTITY url.relprefix "..">
]]>
<![%freebsd.urls.relprefix.2;[
<!ENTITY url.relprefix "../..">
]]>
<![%freebsd.urls.relprefix.3;[
<!ENTITY url.relprefix "../../..">
]]>
<![%freebsd.urls.relprefix.4;[
<!ENTITY url.relprefix "../../../..">
]]>
<![%freebsd.urls.relprefix.5;[
<!ENTITY url.relprefix "../../../../..">
]]>
<![%freebsd.urls.relprefix.6;[
<!ENTITY url.relprefix "../../../../../..">
]]>
<![%freebsd.urls.relprefix.7;[
<!ENTITY url.relprefix "../../../../../../..">
]]>
<![%freebsd.urls.relprefix.8;[
<!ENTITY url.relprefix "../../../../../../../..">
]]>
<!-- Do not edit: end here -->
<![ %freebsd.urls.absolute; [
<!-- put absolute urls here -->
<!ENTITY url.main "http://www.FreeBSD.org">
<!ENTITY url.base "http://www.FreeBSD.org">
]]>
<!-- put relative urls here -->
<!ENTITY url.main "../../../..">
<!ENTITY url.main "&url.relprefix;">
<!ENTITY url.base "&url.relprefix;">