Changeset 659 in MondoRescue for branches/stable/tools/mkchangelog.pl


Ignore:
Timestamp:
Jun 9, 2006, 10:33:24 AM (18 years ago)
Author:
bcornec
Message:

changelog are now generated from mindi's and mondo's main ChangeLog files
new tool to create automatically announces for new version-tag
news.shtml and latest-news.html are now generated from a DB of announce (SQLite)
announce DB added (SQLite v3)
Build process improved for Debian

File:
1 edited

Legend:

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

    r651 r659  
    2020my $chglog = "";
    2121my $ndate = "";
     22my $n2date = "";
    2223my $tmp = "";
    2324my $ver = "";
     
    7980    #print "**$date**\n";
    8081    $ndate = UnixDate($date,"%a", "%b", "%d", "%Y");
     82    $n2date = &UnixDate($date,"%a, %d %b %Y %H:%M:%S %z");
    8183    #print "**$ndate**\n";
    8284    if ($dtype eq "rpm") {
     
    8486        print OUTPUT "- Updated to $ver\n";
    8587        }
     88    if ($dtype eq "deb") {
     89        print OUTPUT "$pkg ($ver) unstable; urgency=low\n";
     90        print OUTPUT "\n";
     91        }
    8692
    8793    $tmp = <INPUT>;
    8894    while ($tmp !~ /^$/) {
    89         print OUTPUT $tmp;
     95        if ($dtype eq "deb") {
     96            print OUTPUT "  * $tmp";
     97        }
     98        else {
     99            print OUTPUT "$tmp";
     100        }
    90101        last if (eof(INPUT));
    91102        $tmp = <INPUT>;
    92103    }
    93104    print OUTPUT "\n";
     105
     106    if ($dtype eq "deb") {
     107        print OUTPUT " -- Bruno Cornec <bruno\@mondorescue.org>  $n2date\n\n";
     108        print OUTPUT "\n";
     109        }
     110
    94111    last if (eof(INPUT));
    95112    last if ($dtype eq "announce");
Note: See TracChangeset for help on using the changeset viewer.