Mercurial > hg > octave-nkf > gnulib-hg
changeset 11866:dfad23abaa5d
announce-gen: detect write failure
* build-aux/announce-gen: Add Coda.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sat, 22 Aug 2009 10:02:19 +0200 |
parents | 84ae262254ad |
children | 899aabbf3074 |
files | ChangeLog build-aux/announce-gen |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-22 Jim Meyering <meyering@redhat.com> + + announce-gen: detect write failure + * build-aux/announce-gen: Add Coda. + 2009-08-19 Akim Demaille <demaille@gostai.com> bootstrap: --help to stdout.
--- a/build-aux/announce-gen +++ b/build-aux/announce-gen @@ -1,7 +1,7 @@ #!/usr/bin/perl -w # Generate a release announcement message. -my $VERSION = '2009-03-05 09:52'; # UTC +my $VERSION = '2009-08-21 21:46'; # 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 @@ -500,6 +500,14 @@ exit 0; } +# use File::Coda; # http://meyering.net/code/Coda/ +END { + defined fileno STDOUT or return; + close STDOUT and return; + warn "$ME: failed to close standard output: $!\n"; + $? ||= 1; +} + ### Setup "GNU" style for perl-mode and cperl-mode. ## Local Variables: ## perl-indent-level: 2