Changeset 11938 for trunk/psconfig/ckperlmods
- Timestamp:
- Feb 19, 2007, 9:45:31 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psconfig/ckperlmods (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/ckperlmods
r11937 r11938 1 1 #!/usr/bin/env perl 2 2 3 $file = " perl.modules.sh";3 $file = "tagsets/ipp-extperl.dst"; 4 4 5 5 open (FILE, $file) || die "ERROR: can't open perl module list: $file\n"; … … 16 16 17 17 $prefix = `csh psconfig.sh --prefix $version`; 18 $perl5lib = `csh psconfig.sh --perl5lib $version`; 18 19 $homedir = `pwd`; 19 20 20 foreach $module (@list) { 21 chomp $module; 21 foreach $line (@list) { 22 chop $line; 23 if ($line =~ m|^\s*$|) { next; } 24 if ($line =~ m|^\s*\#|) { next; } 25 26 ($N, $module, $tarball) = split (" ", $line); 22 27 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 } 29 32 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"; 32 36 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"; 39 42 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; 42 52 }
Note:
See TracChangeset
for help on using the changeset viewer.
