P4::C4::Ignore - Read a cvs ignore file
use P4::C4::Ignore; my $ign = new P4::C4::Ignore(); $ign->isIgnored ($filename); ...
The P4::C4::Ignore package reads .cvsignore files and provides matching functions.
Ignore files are mostly compatible with CVS. The global list of ignores is initialized with:
*~ #* .#* ,* _$* *$ *.old *.bak *.BAK *.orig *.rej .del-* *.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln .c4cache .p4config .make.state .nse_depinfo .dependency-info tags TAGS core
Patterns in the home directory file ~/.cvsignore, or the CVSIGNORE environment variable are appended to this list.
Each directory may have a local '.cvsignore' file. The patterns found in local `.cvsignore' are only valid for the directory that contains them, not for any sub-directories.
In any of the places listed above, a single exclamation mark (`!') clears the ignore list. This can be used if you want to store any file which normally is ignored.
The wildcards * and ? are honored, no other wildcards are currently supported.
Create a new Ignore hash. "filename=>filename" may be specified to override the default of .cvsignore for reading the ignore file.
Any .cvsignore files that are read are cached in this object to save time. Thus if a .cvsignore file is being written by the application, a new object will have to be created to clear the hash.
Returns true if the file is being ignored.
P4::C4
The latest version is available from CPAN. The latest version is available from CPAN and from http://www.veripool.com/.
Copyright 2002-2005 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License or the Perl Artistic License.
Wilson Snyder <wsnyder@wsnyder.org>
To install P4::C4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm P4::C4
CPAN shell
perl -MCPAN -e shell install P4::C4
For more information on module installation, please visit the detailed CPAN module installation guide.