Changeset 659 in MondoRescue for branches/stable/tools/mkannounce.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/mkannounce.pl

    r651 r659  
    2828    }
    2929
    30 my $db="$TOOLHOME/../website/announces.sql";
     30my $db="$TOOLHOME/../website/announces3.sql";
    3131
    3232my $dbh = DBI->connect("dbi:SQLite:dbname=$db","","",
     
    4040open(ANNOUNCE,$ARGV[0]) || die "Unable to open $ARGV[0] (read)";
    4141my $announce = <ANNOUNCE>;
    42 $announce =~ s/\"/\"\"/g;
     42#$announce =~ s/\"/\"\"/g;
     43#$announce =~ s/!//g;
    4344close(ANNOUNCE);
    4445
    4546print "INSERT INTO announces VALUES (NULL, $date, $announce)\n";
    46 #$dbh->do("INSERT INTO announces VALUES (NULL, $date, $announce)")
     47my $sth = $dbh->prepare(qq{INSERT INTO announces VALUES (NULL,?,?)})
     48        || die "Unable to insert into $db";
     49$sth->execute($date, $announce);
     50#$dbh->do(qq(INSERT INTO announces VALUES (NULL, '$date', '$announce')))
    4751#|| die "Unable to insert into $db";
     52
    4853$dbh->disconnect;
Note: See TracChangeset for help on using the changeset viewer.