Author: dom Date: 2013-01-02 00:32:36 +0000 (Wed, 02 Jan 2013) New Revision: 1450
Modified: trunk/Build.PL trunk/Changes trunk/lib/OpenGuides/Build.pm Log: Use mkpath to create the custom template directory rather than mkdir, for cases where the parent directory doesn't already exist
Modified: trunk/Build.PL =================================================================== --- trunk/Build.PL 2013-01-02 00:12:16 UTC (rev 1449) +++ trunk/Build.PL 2013-01-02 00:32:36 UTC (rev 1450) @@ -338,6 +338,7 @@ 'Class::Accessor' => 0, 'Config::Tiny' => 0, 'Data::Dumper' => 0, + 'File::Path' => 0, }, configure_requires => { 'Config::Tiny' => 0,
Modified: trunk/Changes =================================================================== --- trunk/Changes 2013-01-02 00:12:16 UTC (rev 1449) +++ trunk/Changes 2013-01-02 00:32:36 UTC (rev 1450) @@ -11,6 +11,9 @@ Work around a "No such method textContent" bug in Test::HTML::Content when XML::LibXML is not installed Respect destdir when installing scripts, templates, etc + Use mkpath to create the custom template directory rather than + mkdir, for cases where the parent directory doesn't already + exist
0.70 26 August 2012 New elements allowed in page content: span, dl, dt, dd (fixes #303).
Modified: trunk/lib/OpenGuides/Build.pm =================================================================== --- trunk/lib/OpenGuides/Build.pm 2013-01-02 00:12:16 UTC (rev 1449) +++ trunk/lib/OpenGuides/Build.pm 2013-01-02 00:32:36 UTC (rev 1450) @@ -7,6 +7,7 @@
use Module::Build; use OpenGuides::Config; +use File::Path; use base 'Module::Build';
sub ACTION_install { @@ -155,7 +156,7 @@ } else { unless (-d $custom_template_path) { print "Creating directory $custom_template_path.\n"; - mkdir $custom_template_path or warn "Could not make $custom_template_path"; + File::Path::mkpath $custom_template_path or warn "Could not make $custom_template_path"; } }
openguides-commits@lists.openguides.org