russischer Abakus Informatik-Vollmer

Manual Page of mk-sitemap

NAME - A script to create sitemap of a web-site

SYNOPSIS [-h] [-c] [-s suffix] [-e file] [-t title] [-m days] [-S] [-V] [-o file] directory...



Produce a complete HTML file. Default: only a stub is produced.

--domain domain

Add a link to the domain in the header.

--exclude rx

Don't include fiels matching the regular expression rx in the sitemap. Several --exclude may be given.

--language-suffix language

treat the langauge string as a language specification. The filename must follow the following convention:




where SUFFIX is one given by --suffix and LANGUAGE is given by --language-suffix. All files having the same stem are reported on the same line in the sitemap. The option may be given several times. Defaults are: de, en, fr

--suffix suffix

Search for files with the given suffix. Several suffixes may be given. Default: html

--output file

Output is written to file. Default: stdout.

--modified days, -m days

Create a listing all files modified within the last days. If the option -o file is given, the modification time of that file will be set to that date.

--sitemap, -S

Create a sitemap file (default).

--title title, -t title

Use title as headline, default: Sitemap or Changed files

--variable, --V

Use as ``content'' of a <H1>-tag a string assigned to the PHP-variable H1. This must be of the form:

  $H1 = "text";

Print a brief help message and exits.

--manual, -M

Prints the manual page and exits.


Be verbose.

Options names may be abbreviated to uniqueness. Single letter options may be used with only one dash.

DESCRIPTION creates either a sitemap (-S) or a listing of changed files (-M) of a directory.

A sitemap consists of the list of HTML files contained in some directory and its sub directories. searches the given directories for files with the suffixes specified by -suffix and extracts the text enclosed within the first <H1>-tag. If no <H1>-tag is found or if a <H2> preceeds the <H1>, the text of the first <H2>-tag is used. If the option --variable is given the <H1> and <H2> tags are ignored.

Only blanks may preceede the <H1> or <H2> tag.

The output is written to stdout or the file given by -output.

EXAMPLE -s php .

the result for the web-site may be seen here:


Dr. Juergen Vollmer <>

If you find this software useful, I would be glad to receive a postcard from you, showing the place where you're living.



Copyright (C) 2005 Dr. Juergen Vollmer, Viktoriastrasse 15, D-76133 Karlsruhe, Germany.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


1.7 of 2007/01/13

Dr. Jürgen Vollmer (
Diese Seite wurde am 09. März 2012 aktualisiert