Mercurial > hg > octave-lyh > gnulib-hg
changeset 16711:c9ce7d847cbf
announce-gen: use Digest::SHA when possible
* build-aux/announce-gen: Use Digest::SHA when possible, falling
back to Digest::SHA1 if necessary.
author | Reuben Thomas <rrt@sc3d.org> |
---|---|
date | Tue, 20 Mar 2012 20:17:22 +0000 |
parents | 91a203d21bbc |
children | 6ba94155d867 |
files | ChangeLog build-aux/announce-gen |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-03-20 Reuben Thomas <rrt@sc3d.org> + + announce-gen: use Digest::SHA when possible + * build-aux/announce-gen: Use Digest::SHA when possible, falling + back to Digest::SHA1 if necessary. + 2012-03-20 Jim Meyering <meyering@redhat.com> tests: avoid gcc warnings about argv vs. const initializers
--- a/build-aux/announce-gen +++ b/build-aux/announce-gen @@ -3,7 +3,7 @@ if 0; # Generate a release announcement message. -my $VERSION = '2012-01-06 07:46'; # UTC +my $VERSION = '2012-03-20 23:17'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook @@ -30,7 +30,8 @@ use Getopt::Long; use Digest::MD5; -use Digest::SHA1; +eval { require Digest::SHA; } + or eval { use Digest::SHA1; }; use POSIX qw(strftime); (my $ME = $0) =~ s|.*/||;