Changeset 1170

Show
Ignore:
Timestamp:
06/21/08 18:13:23 (4 months ago)
Author:
kake
Message:

Added missing prereq of Term::Prompt; removed some hardcoding.

Location:
branches/new-install-process
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/new-install-process/Build.PL

    r1158 r1170  
    2323      die "Can't make template install folder: $!\n" unless (-d File::Spec->catfile( $path, "OpenGuides" ) ); 
    2424 
    25       mkdir( File::Spec->catfile( $path, "OpenGuides", "templates" ) ); 
    26       die "Can't make template install folder: $!\n" unless (-d File::Spec->catfile( $path, "OpenGuides", "templates" ) ); 
     25      my $templ_dir = File::Spec->catfile( $path, "OpenGuides", "templates" ); 
    2726 
    28       print "Installing templates to $path/OpenGuides/templates\n"; 
    29       opendir TEMPLATES, "templates" or die "Can't open template source folder: $!\n"; 
     27      mkdir( $templ_dir ); 
     28      die "Can't make template install folder: $!\n" unless (-d $templ_dir ); 
     29 
     30      print "Installing templates to $templ_dir\n"; 
     31      opendir TEMPLATES, "templates" 
     32        or die "Can't open template source folder: $!\n"; 
     33 
    3034      for (grep { /\.(tt)$/ } readdir(TEMPLATES)) { 
    31         print "  installing template $_\n"; 
     35        #print "  installing template $_\n"; 
    3236        File::Copy::copy( 
    33           File::Spec->catfile('templates', $_), 
    34           File::Spec->catfile( $path, "OpenGuides", "templates", $_ ) 
     37          File::Spec->catfile( "templates", $_ ), 
     38          File::Spec->catfile( $templ_dir, $_ ) 
    3539        ) or die "Error copying $_: $!\n";; 
    3640      } 
    3741      closedir(TEMPLATES); 
     42      print "Done!\n"; 
    3843 
    3944      return $ret; 
     
    7984        'POSIX'                               => 0, 
    8085        'Template'                            => '2.15', # for hash.delete and string.remove vmethods 
     86        'Term::Prompt'                        => 0, 
    8187        'Time::Piece'                         => 0, 
    8288        'URI::Escape'                         => 0, 
  • branches/new-install-process/PREREQUISITES

    r1092 r1170  
    4242POSIX 
    4343Template 
     44Term::Prompt 
    4445Time::Piece 
    4546URI::Escape