<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/afick/patches/" rel="alternate"/><link href="https://sourceforge.net/p/afick/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/afick/patches/</id><updated>2004-10-13T13:48:50Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>Small patch to allow exclude_suffix to match entire filename</title><link href="https://sourceforge.net/p/afick/patches/1/" rel="alternate"/><published>2004-10-13T13:48:50Z</published><updated>2004-10-13T13:48:50Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netf9f173304d5bb86bc00259d9c08949525885662c</id><summary type="html">I am posting a small patch to the test\_exclude\_suffix\(\)
function to allow it to exclude an entire filename
which may be anywhere within the directory structure.
This is most useful to exclude core files which may be
included in any directory \(and you don't want to
include all the possible directories they could be in\).

sub test\_exclude\_suffix\($\) \{
my $fic = shift \(@\_\);
foreach my $sufx \(@ExSufx\) \{
if \( $fic =~ m/\\.$sufx$/ \) \{
debug\( 2, "find excluded suffix
$sufx in $fic\n" \);
return 1;
\}
\# also match if sufx = entire filename
if \( $fic =~ m/^$sufx$/ \) \{
debug\( 2, "find entire filename
$sufx in $fic\n" \);
return 1;
\}
\}
return 0;
\}
</summary></entry></feed>