#! /usr/bin/perl use warnings; use strict; our($PACKAGE_VERSION, $LIBRARY_VERSION); foreach (qw/PACKAGE_VERSION LIBRARY_VERSION/) { no strict 'refs'; my $opt = lc; $opt =~ tr/_/-/; chomp ($$_ = `./apreq2-config --$opt`); } sub slurp { my $file_name = shift; open my $fh, "<", $file_name or die "Can't open $file_name: $!"; read $fh, my $buf, -s $fh; return wantarray ? split /\n/, $buf : $buf; } my $MAIL_FROM = shift; my $RCPT_TO = join ",\n ", map "<$_>" , qw( announce@httpd.apache.org apreq-dev@httpd.apache.org announce@perl.apache.org modperl@perl.apache.org ); my ($LICENSE_VERSION) = grep s/^\s+Version (\d\.\d),.*$/$1/, slurp "LICENSE"; my $CPAN_DATA = join "", <>; $CPAN_DATA =~ /^has entered CPAN as(.+?)\nNo action is required/ms or die "Bad CPAN message:\n$CPAN_DATA"; $CPAN_DATA = $1; my $TITLE = "libapreq2-$PACKAGE_VERSION Released"; my $mail_header = <