bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

improvements to announce-gen user messages


From: Ben Pfaff
Subject: improvements to announce-gen user messages
Date: Thu, 09 Oct 2008 22:12:30 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hi Jim.  While attempting to use announce-gen for the first time
I discovered and fixed a couple of minor flaws in its user
interface.  OK to push this to gnulib?

commit f70e255e4db6200d6352ba794deb8d4f110461d5
Author: Ben Pfaff <address@hidden>
Date:   Thu Oct 9 22:09:45 2008 -0700

    Improve announce-gen user messages.

diff --git a/ChangeLog b/ChangeLog
index 2a2ac3f..ced34fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-09  Ben Pfaff  <address@hidden>
+
+       * build-aux/announce-gen: Fix gnulib version related part of usage
+       message.  Die with a useful error message if no tarballs are
+       found.
+
 2008-10-02  Bruno Haible  <address@hidden>
 
        * modules/posix_spawn-internal (Depends-on): Add 'open'.
diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index 385ce8c..3b097ec 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 = '2008-06-02 08:18'; # UTC
+my $VERSION = '2008-10-10 05:07'; # 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
@@ -92,10 +92,10 @@ The following are optional:
    --news=NEWS_FILE
    --bootstrap-tools=TOOL_LIST  a comma-separated list of tools, e.g.,
                                 autoconf,automake,bison,gnulib
-   --gnulib-snapshot-date=DATE  if gnulib is in the bootstrap tool list,
-                                then report this as the snapshot date.
-                                If not specified, use the current date/time.
-                                If you specify a date here, be sure it is UTC.
+   --gnulib-version=VERSION     report VERSION as the gnulib version, where
+                                VERSION is the result of running git describe
+                                in the gnulib source directory.
+                                required if gnulib is in TOOL_LIST
 
    --help             display this help and exit
    --version          output version information and exit
@@ -432,6 +432,8 @@ sub get_tool_versions ($$)
   my $xd = "$package_name-$prev_version-$curr_version.xdelta";
 
   my @tarballs = grep {-f $_} ($tgz, $tbz, $lzma);
+  @tarballs
+    or die "$ME: none of $tgz, $tbz, or $lzma were found\n";
   my @sizable = @tarballs;
   -f $xd
     and push @sizable, $xd;

-- 
I love deadlines.
I love the whooshing noise they make as they go by.
--Douglas Adams




reply via email to

[Prev in Thread] Current Thread [Next in Thread]