Ignore:
Timestamp:
Oct 10, 2004, 10:29:50 PM (17 years ago)
Author:
Dominic Hargreaves
Message:

Change custom template locations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/Build.pm

    r529 r530  
    5454
    5555    # Install the scripts where we were told to.
    56     my $install_directory = $config->{_}->{install_directory};
    57     my $script_name       = $config->{_}->{script_name};
    58     my $template_path     = $config->{_}->{template_path};
    59     my $custom_lib_path   = $config->{_}->{custom_lib_path};
    60     my @extra_scripts     = @{ $self->{config}{__extra_scripts} };
    61     my @templates         = @{ $self->{config}{__templates} };
     56    my $install_directory    = $config->{_}->{install_directory};
     57    my $script_name          = $config->{_}->{script_name};
     58    my $template_path        = $config->{_}->{template_path};
     59    my $custom_template_path = $config->{_}->{custom_template_path};
     60    my $custom_lib_path      = $config->{_}->{custom_lib_path};
     61    my @extra_scripts        = @{ $self->{config}{__extra_scripts} };
     62    my @templates            = @{ $self->{config}{__templates} };
    6263
    6364    print "Installing scripts to $install_directory:\n";
     
    103104    }
    104105
    105     print "Installing templates to $install_directory/templates:\n";
     106    print "Installing templates to $template_path:\n";
    106107    foreach my $template ( @templates ) {
    107108        if ( $FAKE ) {
    108             print "templates/$template -> $install_directory/templates/$template (FAKE)\n";
     109            print "templates/$template -> $template_path/$template (FAKE)\n";
    109110        } else {
    110             $self->copy_if_modified("templates/$template", $install_directory)
    111                 or print "Skipping $install_directory/templates/$template (unchanged)\n";
     111            $self->copy_if_modified(from => "templates/$template", to_dir => $template_path, flatten => 1)
     112                or print "Skipping $template_path/$template (unchanged)\n";
    112113        }
    113114    }
     115    print "Making sure that $custom_template_path exists.\n";
     116    mkdir $custom_template_path or warn "Could not make $custom_template_path";
    114117}
    115118
Note: See TracChangeset for help on using the changeset viewer.