diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-04-09 09:25:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-04-09 09:27:29 -0700 |
commit | 261ba83ae8cbe80eb666044efd22ecf2783073eb (patch) | |
tree | f54c4e2a388080ce183d5948b2ec43b71ea8ae3d /build-aux/gitlog-to-changelog | |
parent | 1627a8a2b9f705ece265af70c1805a7c78b04965 (diff) | |
download | gnulib-261ba83ae8cbe80eb666044efd22ecf2783073eb.tar.gz |
gitlog-to-changelog: port to MS-Windows
* build-aux/gitlog-to-changelog (git_dir_option):
Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
MS-Windows Perl. Reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
Diffstat (limited to 'build-aux/gitlog-to-changelog')
-rwxr-xr-x | build-aux/gitlog-to-changelog | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 4fa4f29702..3f4b06a4df 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}' if 0; # Convert git log output to ChangeLog format. -my $VERSION = '2015-03-21 01:01'; # UTC +my $VERSION = '2015-04-09 16:03'; # 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 @@ -328,7 +328,7 @@ sub git_dir_option($) ? ' (tiny change)' : ''); my $date_line = sprintf "%s %s$tiny\n", - strftime ("%F", localtime ($1)), $2; + strftime ("%Y-%m-%d", localtime ($1)), $2; my @coauthors = grep /^Co-authored-by:.*$/, @line; # Omit meta-data lines we've already interpreted. |