diff options
author | Jim Meyering <meyering@fb.com> | 2023-01-02 22:52:08 -0800 |
---|---|---|
committer | Jim Meyering <meyering@meta.com> | 2023-01-10 20:32:45 -0800 |
commit | 7f1b32336b063be3a672e9285f62c6b8ce5eb6e1 (patch) | |
tree | 1f7c016e311ed256a3899ea91ffa163213960ae9 /build-aux | |
parent | 14f0dee7a587a107a8b0b6a7c141bc1ba7b406aa (diff) | |
download | gnulib-7f1b32336b063be3a672e9285f62c6b8ce5eb6e1.tar.gz |
update-copyright: also work with two or more updatable lines in a file
* build-aux/update-copyright: Replace every occurrence of the copyright
line, not just the first one.
* tests/test-update-copyright.sh: Add a test case for this.
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/update-copyright | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/update-copyright b/build-aux/update-copyright index ce919bac72..99196fceef 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -137,7 +137,7 @@ eval 'exec perl -wSx -0777 -pi "$0" "$@"' if 0; -my $VERSION = '2020-04-04.15:07'; # UTC +my $VERSION = '2023-01-11.04:24'; # 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 @@ -280,7 +280,7 @@ if (defined $stmt_re) } # Replace the old copyright statement. - s/$stmt_re/$stmt_wrapped/; + s/$stmt_re/$stmt_wrapped/g; } } else |