Author: joes Date: Tue Mar 18 17:54:03 2014 New Revision: 1578985 URL: http://svn.apache.org/r1578985 Log: cleaner
Modified: thrift/cms-site/trunk/lib/path.pm Modified: thrift/cms-site/trunk/lib/path.pm URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1578985&r1=1578984&r2=1578985&view=diff ============================================================================== --- thrift/cms-site/trunk/lib/path.pm (original) +++ thrift/cms-site/trunk/lib/path.pm Tue Mar 18 17:54:03 2014 @@ -31,11 +31,12 @@ our @patterns = ( my @mdfiles; find({ wanted => sub { - if (/\.md(?:text)?$/ and ! m!\.page/!) { - s/^.*content//; - push @mdfiles, $_; - } -}, no_chdir => 1 }, cwd() . "/content"); + $File::Find::prune = 1, return if -d and m!\.page$!; + if (/\.md(?:text)?$/) { + s/^.*content//; + push @mdfiles, $_; + } + }, no_chdir => 1 }, cwd() . "/content"); our %dependencies = ( "/docs.md" => [ grep s/^content//, glob "content/docs/*" ],