mk-sitemap.pl - A script to create sitemap of a web-site
mk-sitemap.pl [-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.
Add a link to the domain in the header.
Don't include fiels matching the regular expression rx in the sitemap. Several --exclude may be given.
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
Search for files with the given suffix. Several suffixes may be given. Default: html
Output is written to file. Default: stdout.
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.
Create a sitemap file (default).
Use title as headline, default: Sitemap or Changed files
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.
Prints the manual page and exits.
Options names may be abbreviated to uniqueness. Single letter options may be used with only one dash.
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.
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
Dr. Juergen Vollmer <email@example.com>
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/13Dr. Jürgen Vollmer (www.informatik-vollmer.de)