Changeset 87


Ignore:
Timestamp:
May 2, 2003, 6:45:30 PM (19 years ago)
Author:
kake
Message:

OK, the bloody templates are going in the templates/ subdirectory of the install_directory and if anyone doesn't like it then *they* can spend hours faffing with Module::Build :)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r86 r87  
    3939{ question => "what URL does the install directory map to?",
    4040  variable => "script_url",
    41   },
    42 { question => "what directory should I install the templates in?",
    43   variable => "template_path",
    44   default  => "/usr/lib/cgi-bin/openguides/templates/"
    4541  },
    4642{ question => "what directory can I use to store indexes in for searching? "
     
    137133                     variable => $var,
    138134                     value    => $val };
     135
     136    if ( $var eq "install_directory" ) {
     137        push @answers, {
     138            question => "what directory should I install the templates in?",
     139            variable => "template_path",
     140            value    => $val . "/templates" };
     141    }
    139142}
    140143
  • trunk/Changes

    r86 r87  
    33          actually get called what you said it should be (code copied
    44          somewhat from Siesta::Build).
    5         Also you now need to specify the template installation directory.
    65        Fixed the support for non-local databases/IDENT authentication.
    76          I think.
     7        Fixed the hardcoded 'wiki.cgi' in some of the templates (thanks Bob).
    88
    990.04    29 April 2003
  • trunk/lib/OpenGuides/Build.pm

    r86 r87  
    9292    }
    9393
    94     print "Installing templates to $template_path:\n";
     94    print "Installing templates to $install_directory/templates:\n";
    9595    foreach my $template ( @templates ) {
    9696        if ( $FAKE ) {
    97             print "templates/$template -> $template_path/$template (FAKE)\n";
     97            print "templates/$template -> $install_directory/templates/$template (FAKE)\n";
    9898        } else {
    99             $self->copy_if_modified( "templates/$template", $template_path )
    100                 or print "Skipping $template_path/$template (unchanged)\n";
     99            $self->copy_if_modified("templates/$template", $install_directory)
     100                or print "Skipping $install_directory/templates/$template (unchanged)\n";
    101101        }
    102102    }
Note: See TracChangeset for help on using the changeset viewer.