IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25893


Ignore:
Timestamp:
Oct 18, 2009, 12:21:35 PM (17 years ago)
Author:
eugene
Message:

add function to show current INC path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/pscheckperl

    r25891 r25893  
    2020        shift; shift; next;
    2121    }
     22    if ($ARGV[0] eq "-path")  { &list_include_path (); }
    2223    if ($ARGV[0] eq "-h")     { &usage (); }
    2324    if ($ARGV[0] eq "help")   { &usage (); }
     
    110111    if (-e "Build.PL") {
    111112        # vsystem("perl Build.PL --install_path lib=$perldir ");
    112         vsystem("perl Build.PL --prefix $prefix");
     113        vsystem("perl Build.PL --install_base $prefix");
    113114        vsystem("Build");
    114115        vsystem("Build install");
     
    146147
    147148sub usage {
    148     print STDERR "USAGE: pscheckperl [-version] [-build]\n";
     149    print STDERR "USAGE: pscheckperl [-version] [-build] [-path]\n";
    149150    exit 2;
    150151}
     
    165166    exit 2;
    166167}
     168
     169sub list_include_path {
     170    foreach $path (@INC) {
     171        print STDERR "$path\n";
     172    }
     173    exit 2;
     174}
Note: See TracChangeset for help on using the changeset viewer.