Changeset 1450


Ignore:
Timestamp:
Jan 2, 2013, 12:32:36 AM (9 years ago)
Author:
Dominic Hargreaves
Message:

Use mkpath to create the custom template directory rather than mkdir, for cases where the parent directory doesn't already exist

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r1435 r1450  
    339339        'Config::Tiny'                        => 0,
    340340        'Data::Dumper'                        => 0,
     341        'File::Path'                          => 0,
    341342        },
    342343    configure_requires => {
  • trunk/Changes

    r1449 r1450  
    1212          Test::HTML::Content when XML::LibXML is not installed
    1313        Respect destdir when installing scripts, templates, etc
     14        Use mkpath to create the custom template directory rather than
     15          mkdir, for cases where the parent directory doesn't already
     16          exist
    1417
    15180.70    26 August 2012
  • trunk/lib/OpenGuides/Build.pm

    r1449 r1450  
    88use Module::Build;
    99use OpenGuides::Config;
     10use File::Path;
    1011use base 'Module::Build';
    1112
     
    156157        unless (-d $custom_template_path) {
    157158            print "Creating directory $custom_template_path.\n";
    158             mkdir $custom_template_path or warn "Could not make $custom_template_path";
     159            File::Path::mkpath $custom_template_path or warn "Could not make $custom_template_path";
    159160        }
    160161    }
Note: See TracChangeset for help on using the changeset viewer.