russischer Abakus Informatik-Vollmer
    

Manual Page of mk-sitemap

NAME

mk-sitemap.pl - A script to create sitemap of a web-site

SYNOPSIS

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

OPTIONS

--complete

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:

   FILE.SUFFIX

or

   FILE.LANGUAGE.SUFFIX

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";
--help

Print a brief help message and exits.

--manual, -M

Prints the manual page and exits.

--verbose

Be verbose.

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

DESCRIPTION

mk-sitemap.pl 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. mk-sitemap.pl 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

  mk-sitemap.pl -s php .

the result for the web-site http://www.informatik-vollmer.de may be seen here: http://www.informatik-vollmer.de/sitemap.php

AUTHOR

Dr. Juergen Vollmer <juergen.vollmer@informatik-vollmer.de>

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

HOMEPAGE

http://www.informatik-vollmer.de/software/mk-sitemap.html

COPYRIGHT

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

LICENSE

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

VERSION

1.7 of 2007/01/13

Dr. Jürgen Vollmer (www.informatik-vollmer.de)
Diese Seite wurde am 30. Januar 2007 aktualisiert