863912c451
fr/prstats/index.sgml: MFen 1.5 fr/releng/index.sgml: MFen 1.5 fr/releases/2.0/credits.sgml: MFen 1.5 fr/releases/2.2.8R/notes.sgml: MFen 1.6 (incomplete translation) fr/releases/3.1R/notes.sgml: MFen 1.5 (incomplete translation) fr/releases/3.2R/notes.sgml: MFen 1.5 (incomplete translation) fr/releases/3.3R/notes.sgml: MFen 1.4 (incomplete translation) fr/releases/3.4R/notes.sgml: MFen 1.2 (incomplete translation) fr/releases/3.5R/notes.sgml: MFen 1.4 (incomplete translation) fr/releases/4.0R/notes.sgml: MFen 1.4 (incomplete translation) fr/releases/4.0R/errata.sgml: MFen 1.5 fr/releases/4.0R/announce.sgml: MFen 1.3 fr/releases/4.1.1R/errata.sgml: MFen 1.2 fr/releases/4.1R/notes.sgml: MFen 1.3 (incomplete translation) fr/releases/4.1R/errata.sgml: MFen 1.3 fr/releases/4.1R/announce.sgml: MFen 1.3 fr/releases/4.2R/notes.sgml: MFen 1.2 (incomplete translation) fr/releases/4.2R/errata.sgml: MFen 1.2 fr/releases/4.2R/announce.sgml: MFen 1.2 fr/releases/4.3R/announce.sgml: MFen 1.2 fr/releases/4.3R/errata.sgml: MFen 1.18 fr/releases/4.3R/notes.sgml: MFen 1.3 fr/releases/4.4R/announce.sgml: MFen 1.4 fr/releases/4.4R/docbook.css: MFen 1.4 fr/releases/4.5R/docbook.css: MFen 1.4 fr/releases/4.5R/notes.sgml: MFen 1.2 fr/releases/4.5R/announce.sgml: MFen 1.2 fr/releases/4.5R/relnotes-i386.html: MFen 1.22.2.192 fr/releases/4.5R/relnotes-alpha.html: MFen 1.22.2.192 fr/releases/4.5R/errata.html: MFen 1.1.2.52 fr/releases/4.6.2R/relnotes.sgml: MFen 1.1 fr/releases/4.6.2R/relnotes-i386.html: MFen 1.22.2.249.2.13 fr/releases/4.6.2R/relnotes-alpha.html: MFen 1.22.2.249.2.13 fr/releases/4.6.2R/docbook.css: MFen 1.4 fr/releases/4.6R/relnotes.sgml: MFen 1.1 fr/releases/4.6R/relnotes-i386.html: MFen 1.22.2.249 fr/releases/4.6R/relnotes-alpha.html: MFen 1.22.2.249 fr/releases/4.6R/docbook.css: MFen 1.4 fr/releases/4.7R/hardware-i386.html: MFen 1.13.2.68 fr/releases/4.7R/hardware-alpha.html: MFen 1.13.2.68 fr/releases/4.7R/errata.html: MFen 1.1.2.87 fr/releases/4.7R/docbook.css: MFen 1.1 fr/releases/4.7R/announce.sgml: MFen 1.2 fr/releases/5.0R/DP1/relnotes.sgml: MFen 1.2 fr/releases/snapshots.sgml: MFen 1.16 fr/releases/index.sgml: MFen 1.94 fr/search/atoz.pl: MFen 1.5 (script, no translation) fr/search/site.pl: MFen 1.3 (script, no translation) fr/search/site.map: MFen 1.22 fr/search/searchhints.sgml: MFen 1.8 fr/search/search.sgml: MFen 1.92 fr/search/search-mid.sgml: MFen 1.8 fr/search/index-site.sgml: MFen 1.25 fr/search/web.atoz: MFen 1.68 fr/security/security.sgml: MFen 1.72 fr/security/advisories.xml: MFen 1.143 fr/smp/index.sgml: MFen 1.1 fr/tutorials/index.sgml: MFen 1.23
59 lines
1.1 KiB
Perl
Executable file
59 lines
1.1 KiB
Perl
Executable file
#!/usr/bin/perl
|
|
# Copyright (c) June 1998 Wolfram Schneider <wosch@FreeBSD.org>, Berlin.
|
|
#
|
|
# site - create automatically a site map
|
|
#
|
|
# Format: <url> | <description>
|
|
# An empty url begin a new section
|
|
#
|
|
# $FreeBSD$
|
|
|
|
# The FreeBSD French Documentation Project
|
|
# Original revision: 1.3
|
|
|
|
# print a dl list
|
|
# <dl><dt>foo</dt>
|
|
# <dd>bla,foo,bar</dd>
|
|
# </dl>
|
|
|
|
sub dl {
|
|
$menu = 0;
|
|
print "<DL>\n";
|
|
|
|
while(<>) {
|
|
# ignore comments and empty lines
|
|
next if /^\s*#/;
|
|
next if /^\s*$/;
|
|
|
|
chop;
|
|
($url, $description) = split('\|');
|
|
$description =~ s/^\s+//;
|
|
$description =~ s/\s+$//;
|
|
|
|
# new section
|
|
if (!$url && $description) {
|
|
# close last <dd>
|
|
if ($menu) {
|
|
print "\n", " </DD>\n", "\n";
|
|
}
|
|
|
|
$menu = 1;
|
|
print " <DT><STRONG>", $description, "</STRONG></DT>\n";
|
|
print " <DD>\n";
|
|
}
|
|
|
|
# entries for a section
|
|
elsif ($menu) {
|
|
# a comma execpt for the last entry
|
|
print ",\n" if ($menu > 1);
|
|
|
|
print " <A HREF=", '"', $url, '">', $description, "</A>";
|
|
$menu++;
|
|
}
|
|
}
|
|
|
|
print "\n", " </DD>\n";
|
|
print "</DL>\n";
|
|
}
|
|
|
|
&dl;
|