Changeset 27838 for branches/tap_branches/psconfig/pscheckperl
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psconfig/pscheckperl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/psconfig/pscheckperl
r25893 r27838 53 53 } 54 54 55 # generate new psconfig.csh if needed 56 if (! -e "psconfig.csh" || ! -e "psconfig.bash") { 57 $psconfdir = $ENV{'PSCONFDIR'}; 58 if ($psconfdir eq "") { die "PSCONFDIR not found, run psbuild -bootstrap and follow instructions\n"; } 59 vsystem ("cat psconfig.csh.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.csh"); 60 vsystem ("cat psconfig.bash.in | sed 's|\@PSCONFDIR@|$psconfdir|' > psconfig.bash"); 61 } 55 62 56 63 $prefix = `csh -f psconfig.csh --prefix $version`; chomp $prefix; … … 78 85 if ($line =~ m|^\s*\#|) { next; } 79 86 80 ($N, $module, $tarball, $modver, $prompts) = split (" ", $line); 87 $Nvalue = ($N, $module, $tarball, $modver, $buildopts, $prompts) = split (" ", $line); 88 if ($Nvalue < 6) { 89 print "Error in perl module config line $line\n"; 90 exit 1; 91 } 92 # print "N: $N, module: $module, tarball: $tarball, modver: $modver, buildopts: $buildopts, prompts: $prompts\n"; 81 93 82 if ($modver eq "") { $modver = 0; } 94 # we require the number of fields to be fixed, so this test is now invalid: 95 # if ($modver eq "") { $modver = 0; } 96 83 97 system ("pscheckmods $module $modver"); 84 98 if (($? == 0) and not defined $force{$module} and not defined $force{'all'}) { … … 109 123 chdir $tardir; 110 124 111 if (-e "Build.PL") { 125 # we use NONE as the empty word 126 if ($buildopts eq "NONE") { $buildopts = ""; } 127 if ($prompts eq "NONE") { $prompts = ""; } 128 129 if (-e "Build.PL" and $module ne "Params::Validate" and $module ne "DateTime::TimeZone") { 112 130 # vsystem("perl Build.PL --install_path lib=$perldir "); 113 vsystem("perl Build.PL --install_base $prefix ");131 vsystem("perl Build.PL --install_base $prefix $buildopts"); 114 132 vsystem("Build"); 115 133 vsystem("Build install"); … … 118 136 if ($prompts) { 119 137 @answers = split (",", $prompts); 120 open (PIPE, "|perl Makefile.PL PREFIX=$prefix LIB=$perldir ");138 open (PIPE, "|perl Makefile.PL PREFIX=$prefix LIB=$perldir $buildopts"); 121 139 foreach $answer (@answers) { 122 140 print PIPE "$answer\n"; … … 124 142 close (PIPE); 125 143 } else { 126 vsystem ("perl Makefile.PL PREFIX=$prefix LIB=$perldir ");144 vsystem ("perl Makefile.PL PREFIX=$prefix LIB=$perldir $buildopts"); 127 145 } 128 129 146 vsystem ("make < /dev/null"); 130 147 vsystem ("make install");
Note:
See TracChangeset
for help on using the changeset viewer.
