EXTUTILS/MANIFEST(1)

NAME
ExtUtils::Manifest - utilities to write and check a MANIFEST file

SYNOPSIS
require ExtUtils::Manifest;

ExtUtils::Manifest::mkmanifest;

ExtUtils::Manifest::manicheck;

ExtUtils::Manifest::filecheck;

ExtUtils::Manifest::fullcheck;

ExtUtils::Manifest::maniread($file);

ExtUtils::Manifest::manicopy($read,$target);

DESCRIPTION
Mkmanifest() writes all files in and below the current directory to a file named MANIFEST in the current directory. It works similar to

    find . -print
but in doing so checks each line in an existing MANIFEST file and includes any comments that are found in the existing MANIFEST file in the new one. Anything between white space and an end of line within a MANIFEST file is considered to be a comment. Filenames and comments are seperated by one or more TAB characters in the output. All files that match any regular expression in a file MANIFEST.SKIP (if such a file exists) are ignored.

Manicheck() checks if all the files within a MANIFEST in the current directory really do exist.

Filecheck() finds files below the current directory that are not mentioned in the MANIFEST file. An optional file MANIFEST.SKIP will be consulted. Any file matching a regular expression in such a file will not be reported as missing in the MANIFEST file.

Fullcheck() does both a manicheck() and a filecheck().

Maniread($file) reads a named MANIFEST file (defaults to MANIFEST in the current directory) and returns a HASH reference with files being the keys and comments being the values of the HASH.

Manicopy($read,$target) copies the files that are the keys in the HASH %$read to the named target directory. The HASH reference $read is typically returned by the maniread() function. This function is useful for producing a directory tree identical to the intended distribution tree.

MANIFEST.SKIP
The file MANIFEST.SKIP may contain regular expressions of files that should be ignored by mkmanifest() and filecheck(). The regular expressions should appear one on each line. A typical example:

    \bRCS\b
    ^MANIFEST\.
    ^Makefile$
    ~$
    \.html$
    \.old$
    ^blib/
    ^MakeMaker-\d

EXPORT_OK
&mkmanifest, &manicheck, &filecheck, &fullcheck, &maniread, and &manicopy are exportable.

DIAGNOSTICS
All diagnostic output is sent to STDERR.

AUTHOR
Andreas Koenig <koenig@franz.ww.TU-Berlin.DE>