=cut
# bacula|depkgs | depkgs-qt
-my $version = '5.0.0';
-if ($ARGV[0] =~ /^[\d\.]+$/) {
+my $version = '5.0.1';
+if ($ARGV[0] and $ARGV[0] =~ /^[\d\.]+$/) {
$version = shift(@ARGV);
}
-my $depkgs_version = '18Dec09|28Jul09';
+my $depkgs_version = '18Dec09|28Jul09|15May10';
-my $base = "http://bacula.svn.sourceforge.net/viewvc/bacula/tags/Release-$version/bacula";
+my $base = "http://bacula.git.sourceforge.net/git/gitweb.cgi?p=bacula/bacula;a=blob_plain;hb=Release-$version;f=bacula";
my $notes = "$base/ReleaseNotes";
my $chglog = "$base/ChangeLog";
my %cats;
while (my $l = <FP>)
{
# cat vers file
- if ($l =~ m!href="(/projects/bacula/files/([^/]+)/([^/]+)/([^/]+)/download)"!) {
+ if ($l =~ m!href="(?:http://sourceforge.net)(/projects/bacula/files/([^/]+)/([^/]+)/([^/]+)/download)"!) {
print STDERR "$4\n";
$cur = {
dl => $1,
print '
<? require_once("inc/header.php"); ?>
+<? // This page is generated by sf2bacula_downloads.pl in eric s crontab,
+ // no need to update it by hand ?>
<table>
<tr>
<td class="contentTopic">
print '
</table>
+<small>', scalar(localtime), '</small>
<? require_once("inc/footer.php"); ?>
';