From: Jim Meyering Date: Sun, 13 Nov 2005 15:16:40 +0000 (+0000) Subject: Accept new option, --gpg-key-id=ID and X-Git-Tag: COREUTILS-6_0~1353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=719d884ff904d7b5ef08012a41ab6f40fafd57b8;p=platform%2Fupstream%2Fcoreutils.git Accept new option, --gpg-key-id=ID and emit a blurb telling how to use the .sig files. --- diff --git a/announce-gen b/announce-gen index 051159231..34ce114bd 100755 --- a/announce-gen +++ b/announce-gen @@ -6,7 +6,7 @@ use Getopt::Long; use Digest::MD5; use Digest::SHA1; -(my $VERSION = '$Revision: 1.23 $ ') =~ tr/[0-9].//cd; +(my $VERSION = '$Revision: 1.24 $ ') =~ tr/[0-9].//cd; (my $ME = $0) =~ s|.*/||; my %valid_release_types = map {$_ => 1} qw (alpha beta major); @@ -60,6 +60,7 @@ OPTIONS: --package-name=PACKAGE_NAME --previous-version=VER --current-version=VER + --gpg-key-id=ID The GnuPG ID of the key used to sign the tarballs --release-archive-directory=DIR --url-directory=URL_DIR --news=NEWS_FILE optional @@ -124,13 +125,13 @@ sub print_locations ($\@\%@) print "\n"; } -=item C. =cut -sub print_signatures (@) +sub print_checksums (@) { my (@file) = @_; @@ -300,6 +301,7 @@ sub print_changelog_deltas ($$) my $prev_version; my $curr_version; my $release_archive_dir; + my $gpg_key_id; my @url_dir_list; my @news_file; @@ -309,6 +311,7 @@ sub print_changelog_deltas ($$) 'package-name=s' => \$package_name, 'previous-version=s' => \$prev_version, 'current-version=s' => \$curr_version, + 'gpg-key-id=s' => \$gpg_key_id, 'release-archive-directory=s' => \$release_archive_dir, 'url-directory=s' => \@url_dir_list, 'news=s' => \@news_file, @@ -365,10 +368,27 @@ EOF $tgz, $tbz); print_locations ("xdelta-style diffs", @url_dir_list, %size, $xd); - print_locations ("GPG detached signatures", @url_dir_list, %size, + print_locations ("GPG detached signatures[*]", @url_dir_list, %size, "$tgz.sig", "$tbz.sig"); - print_signatures ($tgz, $tbz, $xd); + print_checksums ($tgz, $tbz, $xd); + + print <