Author: joes Date: Tue Mar 18 14:23:29 2014 New Revision: 1578917 URL: http://svn.apache.org/r1578917 Log: sitemap support
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=1578917&r1=1578916&r2=1578917&view=diff ============================================================================== --- thrift/cms-site/trunk/lib/path.pm (original) +++ thrift/cms-site/trunk/lib/path.pm Tue Mar 18 14:23:29 2014 @@ -1,16 +1,16 @@ package path; use YAML::XS; use File::Find; +use Cwd; my @mdfiles; -find(sub { - $_ = File::Find::name; +find({ wanted => sub { if (/\.md(?:text)?$/) { s/^.*content//; push @mdfiles, $_; warn $_; } -}, "content"); +}, nochdir => 1 }, cwd() . "/content"); my $conf = Load(join "", <DATA>);