IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2007, 9:45:31 PM (19 years ago)
Author:
eugene
Message:

perl install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/ckperlmods

    r11937 r11938  
    11#!/usr/bin/env perl
    22
    3 $file = "perl.modules.sh";
     3$file = "tagsets/ipp-extperl.dst";
    44
    55open (FILE, $file) || die "ERROR: can't open perl module list: $file\n";
     
    1616
    1717$prefix = `csh psconfig.sh --prefix $version`;
     18$perl5lib = `csh psconfig.sh --perl5lib $version`;
    1819$homedir = `pwd`;
    1920
    20 foreach $module (@list) {
    21     chomp $module;
     21foreach $line (@list) {
     22    chop $line;
     23    if ($line =~ m|^\s*$|) { next; }
     24    if ($line =~ m|^\s*\#|) { next; }
     25
     26    ($N, $module, $tarball) = split (" ", $line);
    2227   
    23     if (eval "use $module; 1") {
    24         print "$module: found\n";
    25     } else {
    26         print "$module: missing\n";
    27         # try to build the module from ../../extperl/Module.*.tar.gz
    28         chdir "../../extperl";
     28    if (eval "use $module; 1") {
     29        # print "$module: found\n";
     30        next;
     31    }
    2932
    30         print "looking for $module\n";
    31         system ("ls");
     33    # print "$module: missing\n";
     34    # try to build the module from ../../extperl/Module.*.tar.gz
     35    chdir "../../extperl";
    3236
    33         # does the module tarball or directory exist?
    34         @targets = <$module*.tar.gz>;
    35        
    36         foreach $file (@targets) {
    37             print "file: $file\n";
    38         }
     37    print "extract $module from $tarball\n";
     38    system ("tar xvzf $tarball");
     39   
     40    ($tardir) = $tarball =~ m|(\S*).tar.gz|;
     41    print "tardir: $tardir\n";
    3942
    40         chdir $homedir;
    41     }
     43    chdir $tardir;
     44    # system ("perl Makefile.PL LIB=$perl5lib");
     45    system ("perl Makefile.PL PREFIX=$prefix");
     46    system ("make");
     47    system ("make install");
     48
     49    # system ("ls $tarball");
     50
     51    chdir $homedir;
    4252}
Note: See TracChangeset for help on using the changeset viewer.