Changeset 775 in MondoRescue for branches


Ignore:
Timestamp:
Aug 9, 2006, 1:02:30 AM (18 years ago)
Author:
Bruno Cornec
Message:

Bur #41 fixed for 2.0.9

Location:
branches/2.0.9/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0.9/tools/mkchangelog.pl

    r710 r775  
    2323my $tmp = "";
    2424my $ver = "";
     25my $ver2 = "";
    2526my $date = "";
    2627
     
    6162open(INPUT,"$chglog") || die "Unable to open $chglog (read)";
    6263open(OUTPUT,"> $outfile") || die "Unable to open $outfile (write)";
     64open(TAG, "$ENV{TOPDIR}/LAST") || die "Unable to open $ENV{TOPDIR}/LAST";
     65
     66$tmp = <TAG>;
     67chomp($tmp);
     68my ($tmp2, $tag) = split(/-/, $tmp);
    6369# Skip first 4 lines
    6470$tmp = <INPUT>;
     
    7682while (<INPUT>) {
    7783    ($ver, $date) = split(/ /);
     84    $ver =~ s/^v//;
    7885    chomp($date);
    7986    $date =~ s/\(([0-9-]+)\)/$1/;
     
    8390    #print "**$ndate**\n";
    8491    if ($dtype eq "rpm") {
    85         print OUTPUT "* $ndate Bruno Cornec <bruno\@mondorescue.org> VVV-RRR\n";
     92        if ($ver !~ /-/) {
     93            $ver2 = "$ver-$tag";
     94        } else {
     95            $ver2 = $ver;
     96        }
     97        print OUTPUT "* $ndate Bruno Cornec <bruno\@mondorescue.org> $ver2\n";
    8698        print OUTPUT "- Updated to $ver\n";
    8799        }
  • branches/2.0.9/tools/mknewtag

    r772 r775  
    3535if [ $nb -gt 0 ]; then
    3636    echo "You'll have to check in before updating the TAG"
    37     echo "$TAG" > $TOOLHOME/TAG
     37    exit -1
    3838else
    3939    for p in mindi mondo; do
Note: See TracChangeset for help on using the changeset viewer.