diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-22 10:02:19 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-22 10:02:19 +0200 |
commit | 04df4d2f80de876d3c37739225c7f47e378cbd33 (patch) | |
tree | 04986311b1b793176a240c53571716f67fd3b317 /build-aux/announce-gen | |
parent | 9635af4d468439c7509dad58faa299def381a0b5 (diff) | |
download | gnulib-04df4d2f80de876d3c37739225c7f47e378cbd33.tar.gz |
announce-gen: detect write failure
* build-aux/announce-gen: Add Coda.
Diffstat (limited to 'build-aux/announce-gen')
-rwxr-xr-x | build-aux/announce-gen | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build-aux/announce-gen b/build-aux/announce-gen index e5e7491316..ca17a2274e 100755 --- 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 @@ EOF 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 |