Changeset 285 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Nov 15, 2007, 12:04:08 AM (16 years ago)
Author:
Bruno Cornec
Message:

Adds support of NEWS, AUTHORS, svn|cvs.log, ChangeLog files and changelog info from single files under pbconf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r283 r285  
    204204        pb_cms_export($cms,$pbdatecvs,"$ENV{'PBROOT'}/$dir",$dest);
    205205
     206        # Get project info on authors and log file
     207        my $chglog = "$ENV{'PBCONF'}/$pbpkg/pbcl";
     208        $chglog = "$ENV{'PBCONF'}/pbcl" if (! -f $chglog);
     209        $chglog = undef if (! -f $chglog);
     210
     211        my $authors = "$ENV{'PBCONF'}/$pbpkg/pbauthors";
     212        $authors = "$ENV{'PBCONF'}/pbauthors" if (! -f $authors);
     213        $authors = "/dev/null" if (! -f $authors);
     214
    206215        # Extract cms log history and store it
    207         pb_cms_log($cms,"$ENV{'PBROOT'}/$dir","$dest/$ENV{'PBCMSLOGFILE'}");
     216        if ((defined $chglog) && (! -f "$dest/NEWS")) {
     217            print $LOG "Generating NEWS file from $chglog\n";
     218            copy($chglog,"$dest/NEWS") || die "Unable to create $dest/NEWS";
     219        }
     220        pb_cms_log($cms,"$ENV{'PBROOT'}/$dir",$dest,$chglog,$authors);
    208221
    209222        my %build;
     
    269282            if (defined $ptr) {
    270283                foreach my $f (values %bfiles) {
    271                     pb_filter_file_pb("$ENV{'PBROOT'}/$f",$ptr,"$dest/pbconf/$ddir-$dver/".basename($f),$dtype,$pbsuf,$pbpkg,$pbver,$pbtag,$pbrev,$pbdate,$defpkgdir,$extpkgdir,$pbpackager);
     284                    pb_filter_file_pb("$ENV{'PBROOT'}/$f",$ptr,"$dest/pbconf/$ddir-$dver/".basename($f),$dtype,$pbsuf,$pbpkg,$pbver,$pbtag,$pbrev,$pbdate,$defpkgdir,$extpkgdir,$pbpackager,$chglog);
    272285                }
    273286            }
     
    364377
    365378        my $src="$ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.gz";
    366         # Suse 10.0 forces tar.bz2 usage :-(
    367         #if (($ddir eq "suse") && ($dver eq "10.0")) {
    368         #   print "SuSE 10.0 needs bz2 type of packages so recompressing...\n";
    369         #   my $newsrc="$ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.bz2";
    370         #   system "gzip -cd $src | bzip2 -c6 > $newsrc";
    371         #   $src = $newsrc;
    372         #}
    373379        print $LOG "Source file: $src\n" if ($debug >= 0);
    374380
     
    919925    print "\n";
    920926    print "\tscript2vm: Launch one virtual machine if needed        \n";
    921     print "\t           and executes a script on it                 \n";
     927    print "\t           and executes a script on it                 \n";
    922928    print "\n";
    923929    print "\tnewvm:     Create a new virtual machine\n";
Note: See TracChangeset for help on using the changeset viewer.