Changeset 31162
- Timestamp:
- Apr 4, 2011, 1:21:33 PM (15 years ago)
- Location:
- trunk/psconfig
- Files:
-
- 3 edited
- 3 copied
-
pscheckmods (modified) (2 diffs)
-
psconfig.bash.in (modified) (1 diff)
-
psconfig.csh.in (modified) (4 diffs)
-
tagsets/ipp-3.0.dist (copied) (copied from branches/eam_branches/ipp-20110213/psconfig/tagsets/ipp-3.0.dist )
-
tagsets/ipp-3.0.libs (copied) (copied from branches/eam_branches/ipp-20110213/psconfig/tagsets/ipp-3.0.libs )
-
tagsets/ipp-3.0.perl (copied) (copied from branches/eam_branches/ipp-20110213/psconfig/tagsets/ipp-3.0.perl )
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/pscheckmods
r28191 r31162 1 1 #!/usr/bin/env perl 2 2 3 $VERBOSE = 0; 4 if (@ARGV > 2 && $ARGV[0] eq "-v") { 5 $VERBOSE = 1; 6 shift @ARGV; 7 } 3 8 if (@ARGV != 2) { die "USAGE: pscheckmods (module) (version)\n"; } 4 9 5 # print STDERR "checking in @INC\n"; 10 if ($VERBOSE) { print STDERR "checking in @INC\n"; } 11 12 # &detailed_require ($ARGV[0]); 6 13 7 14 $x = eval "require $ARGV[0]; 1"; 8 15 if (! $x) { 9 # print "$ARGV[0]: missing\n"; 10 exit 1; 16 if (! $VERBOSE) { exit 1; } 17 print "$ARGV[0]: missing\n"; 18 &detailed_require ($ARGV[0]); 11 19 } 12 # print "x: $x\n"; 20 if ($VERBOSE) { print "x: $x\n"; } 13 21 14 22 $version = eval "\$$ARGV[0]::VERSION"; … … 21 29 22 30 exit 0; 31 32 sub detailed_require { 33 my ($filename) = @_; 34 $filename =~ s|::|/|g; 35 $filename = "$filename.pm"; 36 print "$filename\n"; 37 if (exists $INC{$filename}) { 38 return 1 if $INC{$filename}; 39 die "Compilation failed in require"; 40 } 41 my ($realfilename,$result); 42 ITER: { 43 foreach $prefix (@INC) { 44 $realfilename = "$prefix/$filename"; 45 print "$realfilename\n"; 46 if (-f $realfilename) { 47 $INC{$filename} = $realfilename; 48 $result = do $realfilename; 49 last ITER; 50 } 51 } 52 die "Can't find $filename in \@INC"; 53 } 54 if ($@) { 55 $INC{$filename} = undef; 56 die $@; 57 } elsif (!$result) { 58 delete $INC{$filename}; 59 die "$filename did not return true value"; 60 } else { 61 return $result; 62 } 63 } -
trunk/psconfig/psconfig.bash.in
r25575 r31162 1 1 # this script sets the PS IPP build environment for BASH shell users 2 2 3 if [ -z $PSCONFIG_DIR ]; then 4 # PSCONFIG_DIR=/home/eugene/src/panstarrs/ipp/psconfig 3 if [ -z $PSCONFDIR ]; then 5 4 PSCONFDIR=@PSCONFDIR@ 6 5 fi -
trunk/psconfig/psconfig.csh.in
r28191 r31162 22 22 set show_pkg_config_path = 0 23 23 set show_aclocal_flags = 0 24 set use_fink = 0 24 25 set args = "" 25 26 while ($#argv) … … 88 89 set show_aclocal_flags = 1 89 90 breaksw; 91 case --use-fink 92 set use_fink = 1 93 breaksw; 90 94 case -*: 91 95 echo "unknown option $1" … … 323 327 case darwin: 324 328 case darwin_x86: 325 set xtralibs = ( $xtralibs "/sw/lib" ) 326 set xtrapath = ( $xtrapath "/sw/include" ) 329 if ($use_fink) then 330 set xtralibs = ( $xtralibs "/sw/lib" ) 331 set xtrapath = ( $xtrapath "/sw/include" ) 332 endif 327 333 breaksw; 328 334 … … 550 556 echo " psconfig --cpath" 551 557 echo " psconfig --aclocal_flags" 558 echo " psconfig --use-fink" 552 559 echo 553 560 echo " psconfig --list : list currently availabe configuration versions"
Note:
See TracChangeset
for help on using the changeset viewer.
