+2024-12-28 Simon Josefsson <simon@josefsson.org>
+
+ announce-gen: Support VPATH builds better.
+ * build-aux/announce-gen: Pass -C$srcdir to git.
+
2024-12-28 Bruno Haible <bruno@clisp.org>
endian: Fix link error on CentOS 5.
eval 'exec perl -wSx "$0" "$@"'
if 0;
-my $VERSION = '2024-12-10 08:57'; # UTC
+my $VERSION = '2024-12-28 18:31'; # 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
my $v0 = $prev_version;
my $v1 = $curr_version;
- (my $first_name = `git config user.name|cut -d' ' -f1`)
+ (my $first_name = `git -C "$srcdir" config user.name|cut -d' ' -f1`)
=~ m{\S} or die "no name? set user.name in ~/.gitconfig\n";
- chomp (my $n_ci = `git rev-list "v$v0..v$v1" | wc -l`);
- chomp (my $n_p = `git shortlog "v$v0..v$v1" | grep -c '^[^ ]'`);
+ chomp (my $n_ci = `git -C "$srcdir" rev-list "v$v0..v$v1" | wc -l`);
+ chomp (my $n_p = `git -C "$srcdir" shortlog "v$v0..v$v1" | grep -c '^[^ ]'`);
- my $this_commit_hash = `git log --pretty=%H -1 "v$v1"`;
+ my $this_commit_hash = `git -C "$srcdir" log --pretty=%H -1 "v$v1"`;
chop $this_commit_hash;
- my $prev_release_date = `git log --pretty=%ct -1 "v$v0"`;
- my $this_release_date = `git log --pretty=%ct -1 "v$v1"`;
+ my $prev_release_date = `git -C "$srcdir" log --pretty=%ct -1 "v$v0"`;
+ my $this_release_date = `git -C "$srcdir" log --pretty=%ct -1 "v$v1"`;
my $n_seconds = $this_release_date - $prev_release_date;
my $time_since_prev = readable_interval $n_seconds;
- my $names = `git shortlog "v$v0..v$v1"|perl -lne '/^(\\w.*):/ and print " ".\$1'`;
+ my $names = `git -C "$srcdir" shortlog "v$v0..v$v1"|perl -lne '/^(\\w.*):/ and print " ".\$1'`;
print <<EOF;
There have been $n_ci commits by $n_p people in the $time_since_prev since $v0.