diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2012-12-23 17:43:10 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2012-12-23 17:43:10 +0100 |
commit | ecade79a63e9abad933e3705a02533620ddc92b5 (patch) | |
tree | c05c6ee3dcd8e1846739b1bfca8019aeaabf3368 /dist-tools | |
parent | 1506acc082f2f6f39c0028484cbb9378def68967 (diff) | |
download | fetchmail-ecade79a63e9abad933e3705a02533620ddc92b5.tar.gz fetchmail-ecade79a63e9abad933e3705a02533620ddc92b5.tar.bz2 fetchmail-ecade79a63e9abad933e3705a02533620ddc92b5.zip |
Sign .xz; upload to sf.net; upload .xz to local site.
Diffstat (limited to 'dist-tools')
-rwxr-xr-x | dist-tools/makerelease.pl | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/dist-tools/makerelease.pl b/dist-tools/makerelease.pl index 51b82854..f07af094 100755 --- a/dist-tools/makerelease.pl +++ b/dist-tools/makerelease.pl @@ -8,7 +8,8 @@ my $project = "fetchmail"; my $website = "http://developer.berlios.de/projects/$project"; my $mailfrom = "<$project-devel\@lists.berlios.de> (Fetchmail Development Team)"; -my $distsufx = '.tar.bz2'; +my $distsufx = '.tar.bz2'; +my $xzsufx = '.tar.xz'; # --------------------------------------------------------------------- @@ -35,6 +36,19 @@ sub usage($$) { exit($_[1]); } +sub makerelnotes($$) { + my ($infile, $outfile) = @_; + open(F, "<$infile") or die "cannot read $infile: $!"; + open(G, ">$outfile") or die "cannot write to $outfile: $!"; + my $ctr = 0; + while(<F>) { + $ctr++ if /^fetchmail-/; + print G if $ctr == 1; + } + close F or die "cannot read $infile: $!"; + close G or die "cannot write to $outfile: $!"; +} + GetOptions("diffs|d" => \$diffs, "verbose|v" => \$verbose, "help|h|?" => \$help) or usage($0, 1); @@ -171,17 +185,25 @@ unlink("$tmp/$project.DIFFS.$$"); print "### Signing tarballs...\n"; system("cd autobuild && gpg -ba --sign $project-$version$distsufx"); +system("cd autobuild && gpg -ba --sign $project-$version$xzsufx"); + +print "### Extracting release notes...\n"; +makerelnotes('NEWS', 'autobuild/README'); print "### Uploading\n"; print "=== local\n"; -system("cp", "autobuild/$project-$version$distsufx", "autobuild/$project-$version$distsufx.asc", "$ENV{HOME}/public_html/fetchmail/") and die "Cannot upload to \$HOME/public_html/fetchmail/: $!"; +system("cp", "autobuild/$project-$version$xzsufx", "autobuild/$project-$version$xzsufx.asc", "$ENV{HOME}/public_html/fetchmail/") and die "Cannot upload to \$HOME/public_html/fetchmail/: $!"; print "=== berlios\n"; system("lftp -e \"lcd autobuild ; mput $project-$version$distsufx $project-$version$distsufx.asc ; quit\" ftp.berlios.de:/incoming/") and warn "Upload to berlios failed: $!"; -print "Done - please review final tasks\n"; +print "=== sourceforge \n"; +system("rsync -acvHP autobuild/$project-$version$xzsufx autobuild/$project-$version$xzsufx.asc autobuild/README m-a\@frs.sourceforge.net:/home/frs/project/fetchmail/branch_6.3/"); +unlink 'autobuild/README' or die "cannot unlink autobuild/README: $!"; + +print "=== Done - please review final tasks\n"; system("cat RELEASE-INSTRUCTIONS"); |