From: Ben Pfaff Date: Tue, 19 Aug 2008 06:20:22 +0000 (+0200) Subject: gitlog-to-changelog: give better diagnostic for failed pipe-open X-Git-Tag: v0.1~7135^2~5 X-Git-Url: https://erislabs.net/gitweb/?a=commitdiff_plain;h=9462d43fbc0d873ee7e667ba952616d53b8585e4;p=gnulib.git gitlog-to-changelog: give better diagnostic for failed pipe-open * build-aux/gitlog-to-changelog: Improve error message: suggest that the version of Git may be too old. --- diff --git a/ChangeLog b/ChangeLog index a09e688bb..5e303c75a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-18 Ben Pfaff + + gitlog-to-changelog: give better diagnostic for failed pipe-open + * build-aux/gitlog-to-changelog: Improve error message: suggest + that the version of Git may be too old. + 2008-08-18 Simon Josefsson * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 3efdb6ddb..50b1b2fc8 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -1,7 +1,7 @@ #!/usr/bin/perl # Convert git log output to ChangeLog format. -my $VERSION = '2008-02-10 10:03'; # UTC +my $VERSION = '2008-08-19 05:01'; # 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 @@ -106,7 +106,8 @@ sub quoted_cmd(@) my @cmd = (qw (git log --log-size), "--since=$since_date", '--pretty=format:%ct %an <%ae>%n%n%s%n%b%n'); open PIPE, '-|', @cmd - or die "$ME: failed to run `". quoted_cmd (@cmd) ."': $!\n"; + or die ("$ME: failed to run `". quoted_cmd (@cmd) ."': $!\n" + . "(Is your Git too old? Version 1.5.1 or later is required.)\n"); my $prev_date_line = ''; while (1)