Author: joes
Date: Wed Mar 19 20:46:41 2014
New Revision: 1579393
URL: http://svn.apache.org/r1579393
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=1579393&r1=1579392&r2=1579393&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Wed Mar 19 20:46:41 2014
@@ -29,9 +29,10 @@ our %dependencies = (
"/sitemap.html" => \@mdfiles,
);
+my $cwd = cwd;
find({ wanted => sub {
$File::Find::prune = 1, return if -d and m!\.page$!;
- s/^.*content//;
+ s!^$cwd/content!!;
if (/\.md(?:text)?$/) {
push @mdfiles, $_;
}
@@ -40,7 +41,7 @@ find({ wanted => sub {
grep s/^content//, glob("content$_/*.{md,mdtext}"),
glob("content$_/*/index.html") ],
}
- }, no_chdir => 1 }, cwd() . "/content");
+ }, no_chdir => 1 }, "$cwd/content");
1;