The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

linkRedir -- rocess out the redirects and normalise links in a link file.

SYNOPSIS

linkRedir [--nocase|--noclean|--gzip|--bzip2] LINK-FILE STEM

  Options:

    LINK-FILE           Filename for input link file usually created by XSL
    STEM                stem for output file, several extensions read and made
    --bzip2             pipe input through 
I<bzip2>(1)
    --gzip              pipe input through 
I<gzip>(1)
    --init              empty the 
F<STEM.redirect> file at startup
    --nocase            ignore case of URLs
    --noclean           don't use built-in URL cleaning
    -h, --help          display help message and exit.
    --man               print man page and exit.

DESCRIPTION

Input file of links, link text and redirects. Process out the redirects and normalise links, taking two passes. This is intended as a preprocessor for linkTables(1), and the input format is found there.

First pass reads in previously assembled redirects from STEM.redirect and then filter any more from LINK-FILE. The second pass reads the links from LINK-FILE and processes out the redirects. Output processed links to STDOUT and saves all redirects in STEM.redirect. Both output files are appended to so can be applied repeatedly to incrementally build up the result files from a series of batches, though redirects read in a later batch will not be applied to earlier batches. Normalises output URIs using URI->canonical. Assumes input URIs have no embedded spaces, they must be encoded.

SEE ALSO

linkBags(1), linkMpca(1), linkTables(1), URI(3).

AUTHOR

Wray Buntine

COPYRIGHT AND LICENSE

Copyright (C) 2005-2006 Wray Buntine

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 (at your option) 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., 675 Mass Ave, Cambridge, MA 02139, USA.