diff options
author | Laurent Léonard <laurent@open-minds.org> | 2009-09-18 03:14:36 +0200 |
---|---|---|
committer | Laurent Léonard <laurent@open-minds.org> | 2009-09-18 03:14:36 +0200 |
commit | b6cb73802b8f3e3b5b7c689a6cf42bcdd1de84b7 (patch) | |
tree | f4843c7733bd7df953a3b103c650be174f3dc999 /build-aux | |
parent | 4fb1a38b39adcd08a8376724b90a7da535fd2b80 (diff) |
Imported Upstream version 0.7.1
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/gitlog-to-changelog | 9 | ||||
-rwxr-xr-x | build-aux/vc-list-files | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 1cc53eb7c..a0f8a088e 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 = '2009-06-04 08:53'; # UTC +my $VERSION = '2009-08-12 16:49'; # 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 @@ -60,6 +60,9 @@ OPTIONS: --since=DATE convert only the logs since DATE; the default is to convert all log entries. + --format=FMT set format string for commit subject and body; + see 'man git-log' for the list of format metacharacters; + the default is '%s%n%b%n' --help display this help and exit --version output version information and exit @@ -96,15 +99,17 @@ sub quoted_cmd(@) { my $since_date = '1970-01-01 UTC'; + my $format_string = '%s%n%b%n'; GetOptions ( help => sub { usage 0 }, version => sub { print "$ME version $VERSION\n"; exit }, 'since=s' => \$since_date, + 'format=s' => \$format_string, ) or usage 1; my @cmd = (qw (git log --log-size), "--since=$since_date", - '--pretty=format:%ct %an <%ae>%n%n%s%n%b%n', @ARGV); + '--pretty=format:%ct %an <%ae>%n%n'.$format_string, @ARGV); open PIPE, '-|', @cmd or die ("$ME: failed to run `". quoted_cmd (@cmd) ."': $!\n" . "(Is your Git too old? Version 1.5.1 or later is required.)\n"); diff --git a/build-aux/vc-list-files b/build-aux/vc-list-files index 9376e3dc2..cc716e9c3 100755 --- a/build-aux/vc-list-files +++ b/build-aux/vc-list-files @@ -2,7 +2,7 @@ # List version-controlled file names. # Print a version string. -scriptversion=2009-04-25.13; # UTC +scriptversion=2009-07-21.16; # UTC # Copyright (C) 2006-2009 Free Software Foundation, Inc. @@ -74,7 +74,7 @@ test "x$dir" = x && dir=. if test -d .git; then test "x$dir" = x. \ && dir= sed_esc= \ - || dir="$dir/" sed_esc=`echo "$dir"|sed 's,\([\\/]\),\\\\\1,g'` + || { dir="$dir/"; sed_esc=`echo "$dir"|env sed 's,\([\\/]\),\\\\\1,g'`; } # Ignore git symlinks - either they point into the tree, in which case # we don't need to visit the target twice, or they point somewhere # else (often into a submodule), in which case the content does not |