Changeset 1600 in ProjectBuilder for devel/pb/bin
- Timestamp:
- May 26, 2012, 3:31:01 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1598 r1600 42 42 43 43 # Global variables 44 $Global::pb_stop_on_error = 1; # True by default44 $Global::pb_stop_on_error = 0; # False by default 45 45 $Global::pb_show_sudo = 0; # False by default 46 46 … … 3348 3348 3349 3349 # First install all required packages 3350 pb_system("yum clean all","Cleaning yum env" ) if (($pbos->{'name'} eq "fedora") || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel"));3350 pb_system("yum clean all","Cleaning yum env","mayfail") if (($pbos->{'name'} eq "fedora") || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel")); 3351 3351 my ($ospkgdep) = pb_conf_get_if("ospkgdep"); 3352 3352 … … 3400 3400 my $dir = $m; 3401 3401 $dir =~ s/-.*//; 3402 pb_system("echo \"rm -rf $m* ; wget http://search.cpan.org/CPAN/modules/by-module/$dir/$m-$osperlver->{$m}.tar.gz ; gzip -cd $m-$osperlver->{$m}.tar.gz | tar xf - ; cd $m* ; if [ -f Build.PL ]; then perl Build.PL; ./Build ; ./Build install ; else perl Makefile.PL; make ; make install ; fi; cd .. ; rm -rf $m*\" | bash -e" ,"Installing perl module $m-$osperlver->{$m}" );3402 pb_system("echo \"rm -rf $m* ; wget http://search.cpan.org/CPAN/modules/by-module/$dir/$m-$osperlver->{$m}.tar.gz ; gzip -cd $m-$osperlver->{$m}.tar.gz | tar xf - ; cd $m* ; if [ -f Build.PL ]; then perl Build.PL; ./Build ; ./Build install ; else perl Makefile.PL; make ; make install ; fi; cd .. ; rm -rf $m*\" | bash -e" ,"Installing perl module $m-$osperlver->{$m}","mayfail"); 3403 3403 } 3404 3404 EOF … … 3422 3422 } 3423 3423 print SCRIPT << 'EOF'; 3424 pb_system("pb 2>&1 | head -5",undef,"verbose");3424 pb_system("pb -h",undef,"verbose"); 3425 3425 pb_system("pbdistrocheck",undef,"verbose"); 3426 3426 EOF … … 3429 3429 # For VE we need to umount some FS at the end 3430 3430 3431 pb_system("umount /proc" );3431 pb_system("umount /proc","Unmounting /proc,"mayfail"); 3432 3432 3433 3433 # Create a basic network file if not already there
Note:
See TracChangeset
for help on using the changeset viewer.