NAME

flatten.pl - Modify web files so they are in a single flat directory

SYNOPSIS

perl flatten.pl directory

DESCRIPTION

This script modifies the contents of a directory containing web files so that the relative urls they contain point to files in the same directory.It's assumed that the files have already been copied into a single directory before this script is run.

FLAGS

This script supports a single command line flag:

-r

Before modifying the file the script creates a backup copy whose name is the same with an appended ~ character. If the -r flag is on the command line, instead of modifying the files, it restores the original file by copying the old version over the modified version. This script for developers of this code and not for end users.

LICENSE

Copyright (C) Bernie Simon.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Bernie Simon <bernie.simon@gmail.com>