Changeset 18 in ProjectBuilder for devel/pb/lib/changelog.pm


Ignore:
Timestamp:
Jul 31, 2007, 12:50:36 AM (17 years ago)
Author:
Bruno Cornec
Message:

cms2build roughly working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/changelog.pm

    r17 r18  
    1717my $pbtag = shift;
    1818my $dsuf = shift;
     19my $path = shift;
    1920my $OUTPUT = shift;
    2021
     
    2627return("\n") if ((not (defined $dtype)) || ($dtype eq "") ||
    2728        (not (defined $pkg)) || ($pkg eq "") ||
     29        (not (defined $pbtag)) || ($pbtag eq "") ||
     30        (not (defined $dsuf)) || ($dsuf eq "") ||
     31        (not (defined $path)) || ($path eq "") ||
    2832        (not (defined $OUTPUT)) || ($OUTPUT eq ""));
    2933
    30 my $chglog = "$ENV{'PBROOT'}/$pkg/ChangeLog";
     34my $chglog = "$ENV{'PBROOT'}/$path/ChangeLog";
    3135if (! -f $chglog) {
    32     print "Unable to find a ChangeLog file for $pkg\n";
     36    print "Unable to find the ChangeLog file ($chglog) for $pkg\n";
    3337    return("\n");
    3438}
     
    7276            $ver2 = "$ver$dsuf";
    7377        }
    74         print $OUTPUT "* $ndate Bruno Cornec <bruno\@mondorescue.org> $ver2\n";
     78        print $OUTPUT "* $ndate $confparam{'packager'} $ver2\n";
    7579        print $OUTPUT "- Updated to $ver\n";
    7680        }
     
    9599
    96100    if ($dtype eq "deb") {
    97         print $OUTPUT " -- Bruno Cornec <bruno\@mondorescue.org> $n2date\n\n";
     101        print $OUTPUT " -- $confparam{'packager'} $n2date\n\n";
    98102        print $OUTPUT "\n";
    99103        }
Note: See TracChangeset for help on using the changeset viewer.