Changeset 169 in ProjectBuilder
- Timestamp:
- Oct 2, 2007, 12:14:05 AM (17 years ago)
- Location:
- devel/pb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified devel/pb/bin/pb ¶
r168 r169 568 568 # and launch the build thourgh pbscript 569 569 pb_send2ssh("Script","$v",$vmexist,"vmhost","vmlogin","pbrc","vmport"); 570 570 571 } 571 572 } … … 749 750 print "pb (aka project-builder) Version $projectbuilderver-$projectbuilderrev\n"; 750 751 print "\n"; 751 print "Syntax: pb [-vhqt][-r pbroot][-p project][[-s script -a account ] -m \"mach-1[,...]\"] <action> [<pkg1>...]\n";752 print "Syntax: pb [-vhqt][-r pbroot][-p project][[-s script -a account -P port] -m \"mach-1[,...]\"] <action> [<pkg1>...]\n"; 752 753 print "\n"; 753 754 print "-h : This help file\n"; … … 781 782 print "\tbuild2pkg: Create packages for your running distribution \n"; 782 783 print "\n"; 784 print "\tcms2pkg: cms2build + build2pkg\n"; 785 print "\n"; 783 786 print "\tbuild2ssh: Send the tar files to a SSH host \n"; 784 787 print "\n"; 785 788 print "\tpkg2ssh: Send the packages built to a SSH host \n"; 786 print "\n";787 print "\tcms2pkg: cms2build + build2pkg\n";788 789 print "\n"; 789 790 print "\tbuild2vm: Create packages in VMs, launching them if needed\n"; … … 791 792 print "\t VM type supported are QEMU \n"; 792 793 print "\n"; 794 print "\tcms2vm: cms2build + build2vm\n"; 795 print "\n"; 793 796 print "\tlaunchvm: Launch one virtual machine\n"; 794 797 print "\n"; … … 796 799 print "\t and executes a script on it \n"; 797 800 print "\n"; 798 print "\tcms2vm: cms2build + build2vm\n"; 799 print "\n"; 800 } 801 } -
TabularUnified devel/pb/contrib/pbsetupqemu ¶
r168 r169 63 63 } 64 64 close(PBFILE); 65 print PB FILE"pb ALL=(ALL) NOPASSWD:ALL\n" if ( $found == 0 );65 print PBOUT "pb ALL=(ALL) NOPASSWD:ALL\n" if ( $found == 0 ); 66 66 close(PBOUT); 67 67 rename("$file.new",$file); … … 76 76 if ( $ddir eq "fedora" ) { 77 77 system "yum clean all"; 78 system "yum update -y"; 79 my $arch=`uname -m`; 80 my $opt = ""; 81 chomp($arch); 82 if ($arch eq "x86_64") { 83 $opt="--exclude=*.i?86"; 84 } 78 85 if ( $dver <= 4 ) { 79 86 # FC4 80 system "yum -y install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs perl-DateManip ntp ; rm -rf AppConfig-* ; wget http://search.cpan.org/CPAN/authors/id/A/AB/ABW/AppConfig-1.66.tar.gz ; tar xvfz AppConfig-1.66.tar.gz ; cd AppConfig* ; perl Makefile.PL ; make ; make install ; cd ..";87 system "yum -y $opt install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs perl-DateManip ntp ; rm -rf AppConfig-* ; wget http://search.cpan.org/CPAN/authors/id/A/AB/ABW/AppConfig-1.66.tar.gz ; tar xvfz AppConfig-1.66.tar.gz ; cd AppConfig* ; perl Makefile.PL ; make ; make install ; cd .."; 81 88 } else { 82 89 # FC5/6/7 83 system "yum -y install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs ntp perl-AppConfig perl-DateManip";90 system "yum -y $opt install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs ntp perl-AppConfig perl-DateManip"; 84 91 } 85 92 } elsif ( $dfam eq "md" ) { -
TabularUnified devel/pb/lib/ProjectBuilder/Base.pm ¶
r156 r169 367 367 my @ffiles; 368 368 my ($ffile0, $ffile1, $ffile2, $ffile3); 369 my ($mfile0, $mfile1, $mfile2, $mfile3); 369 370 my $pbpkg = shift || die "No package specified"; 370 371 my $dtype = shift || die "No dtype specified"; … … 374 375 my $ptr; # returned value pointer on the hash of filters 375 376 my %ptr; 377 378 # Global filter files first, then package specificities 379 if (-d "$ENV{'PBCONF'}/pbfilter") { 380 $mfile0 = "$ENV{'PBCONF'}/pbfilter/$dtype.pbf" if (-f "$ENV{'PBCONF'}/pbfilter/$dtype.pbf"); 381 $mfile1 = "$ENV{'PBCONF'}/pbfilter/$dfam.pbf" if (-f "$ENV{'PBCONF'}/pbfilter/$dfam.pbf"); 382 $mfile2 = "$ENV{'PBCONF'}/pbfilter/$ddir.pbf" if (-f "$ENV{'PBCONF'}/pbfilter/$ddir.pbf"); 383 $mfile3 = "$ENV{'PBCONF'}/pbfilter/$ddir-$dver.pbf" if (-f "$ENV{'PBCONF'}/pbfilter/$ddir-$dver.pbf"); 384 385 push @ffiles,$mfile0 if (defined $mfile0); 386 push @ffiles,$mfile1 if (defined $mfile1); 387 push @ffiles,$mfile2 if (defined $mfile2); 388 push @ffiles,$mfile3 if (defined $mfile3); 389 } 376 390 377 391 if (-d "$ENV{'PBCONF'}/$pbpkg/pbfilter") {
Note:
See TracChangeset
for help on using the changeset viewer.