+2023-01-10 Jim Meyering <meyering@fb.com>
+
+ 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.
+
2023-01-10 Bruno Haible <bruno@clisp.org>
immutable: Fix initialization failure on Android.
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
}
# Replace the old copyright statement.
- s/$stmt_re/$stmt_wrapped/;
+ s/$stmt_re/$stmt_wrapped/g;
}
}
else
# Copyright (C) 1990-2005, 2007-2009 Free Software
# Foundation, Inc.
EOF
+cat > $TMP.8 <<EOF
+Copyright (C) 2008 Free Software Foundation, Inc.
+Copyright (C) 2008 Free Software Foundation, Inc.
+EOF
UPDATE_COPYRIGHT_YEAR=2009 \
update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr
# Copyright (C) 1990-2005, 2007-2009 Free Software
# Foundation, Inc.
EOF
+compare - $TMP.8 <<EOF || exit 1
+Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+Copyright (C) 2008, 2009 Free Software Foundation, Inc.
+EOF
UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr