diff options
| author | Po Lu | 2023-07-10 08:21:59 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-10 08:21:59 +0800 |
| commit | 8dd34ad8d80b0bd07cf59add94bfb6a6e52098b2 (patch) | |
| tree | f08a3a5d9ba5ec5c3c3e47911809eaee21d63327 /build-aux | |
| parent | ed5ade097e5b675167f9c7e4916a4beec62d118a (diff) | |
| parent | b76878cfab1eb681d759ac3b57832baca4df7ef2 (diff) | |
| download | emacs-8dd34ad8d80b0bd07cf59add94bfb6a6e52098b2.tar.gz emacs-8dd34ad8d80b0bd07cf59add94bfb6a6e52098b2.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'build-aux')
| -rwxr-xr-x | build-aux/config.guess | 16 | ||||
| -rwxr-xr-x | build-aux/config.sub | 31 | ||||
| -rwxr-xr-x | build-aux/gitlog-to-changelog | 4 | ||||
| -rwxr-xr-x | build-aux/update-copyright | 20 |
4 files changed, 41 insertions, 30 deletions
diff --git a/build-aux/config.guess b/build-aux/config.guess index 69188da73d7..354a8ccde42 100755 --- a/build-aux/config.guess +++ b/build-aux/config.guess | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale | 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale |
| 6 | 6 | ||
| 7 | timestamp='2023-01-01' | 7 | timestamp='2023-06-23' |
| 8 | 8 | ||
| 9 | # This file is free software; you can redistribute it and/or modify it | 9 | # This file is free software; you can redistribute it and/or modify it |
| 10 | # under the terms of the GNU General Public License as published by | 10 | # under the terms of the GNU General Public License as published by |
| @@ -47,7 +47,7 @@ me=`echo "$0" | sed -e 's,.*/,,'` | |||
| 47 | usage="\ | 47 | usage="\ |
| 48 | Usage: $0 [OPTION] | 48 | Usage: $0 [OPTION] |
| 49 | 49 | ||
| 50 | Output the configuration name of the system \`$me' is run on. | 50 | Output the configuration name of the system '$me' is run on. |
| 51 | 51 | ||
| 52 | Options: | 52 | Options: |
| 53 | -h, --help print this help, then exit | 53 | -h, --help print this help, then exit |
| @@ -66,7 +66,7 @@ This is free software; see the source for copying conditions. There is NO | |||
| 66 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 66 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 67 | 67 | ||
| 68 | help=" | 68 | help=" |
| 69 | Try \`$me --help' for more information." | 69 | Try '$me --help' for more information." |
| 70 | 70 | ||
| 71 | # Parse command line | 71 | # Parse command line |
| 72 | while test $# -gt 0 ; do | 72 | while test $# -gt 0 ; do |
| @@ -102,8 +102,8 @@ GUESS= | |||
| 102 | # temporary files to be created and, as you can see below, it is a | 102 | # temporary files to be created and, as you can see below, it is a |
| 103 | # headache to deal with in a portable fashion. | 103 | # headache to deal with in a portable fashion. |
| 104 | 104 | ||
| 105 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | 105 | # Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still |
| 106 | # use `HOST_CC' if defined, but it is deprecated. | 106 | # use 'HOST_CC' if defined, but it is deprecated. |
| 107 | 107 | ||
| 108 | # Portable tmp directory creation inspired by the Autoconf team. | 108 | # Portable tmp directory creation inspired by the Autoconf team. |
| 109 | 109 | ||
| @@ -459,7 +459,7 @@ case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in | |||
| 459 | UNAME_RELEASE=`uname -v` | 459 | UNAME_RELEASE=`uname -v` |
| 460 | ;; | 460 | ;; |
| 461 | esac | 461 | esac |
| 462 | # Japanese Language versions have a version number like `4.1.3-JL'. | 462 | # Japanese Language versions have a version number like '4.1.3-JL'. |
| 463 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` | 463 | SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` |
| 464 | GUESS=sparc-sun-sunos$SUN_REL | 464 | GUESS=sparc-sun-sunos$SUN_REL |
| 465 | ;; | 465 | ;; |
| @@ -1197,7 +1197,7 @@ EOF | |||
| 1197 | GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION | 1197 | GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION |
| 1198 | ;; | 1198 | ;; |
| 1199 | i*86:OS/2:*:*) | 1199 | i*86:OS/2:*:*) |
| 1200 | # If we were able to find `uname', then EMX Unix compatibility | 1200 | # If we were able to find 'uname', then EMX Unix compatibility |
| 1201 | # is probably installed. | 1201 | # is probably installed. |
| 1202 | GUESS=$UNAME_MACHINE-pc-os2-emx | 1202 | GUESS=$UNAME_MACHINE-pc-os2-emx |
| 1203 | ;; | 1203 | ;; |
| @@ -1338,7 +1338,7 @@ EOF | |||
| 1338 | GUESS=ns32k-sni-sysv | 1338 | GUESS=ns32k-sni-sysv |
| 1339 | fi | 1339 | fi |
| 1340 | ;; | 1340 | ;; |
| 1341 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | 1341 | PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort |
| 1342 | # says <Richard.M.Bartel@ccMail.Census.GOV> | 1342 | # says <Richard.M.Bartel@ccMail.Census.GOV> |
| 1343 | GUESS=i586-unisys-sysv4 | 1343 | GUESS=i586-unisys-sysv4 |
| 1344 | ;; | 1344 | ;; |
diff --git a/build-aux/config.sub b/build-aux/config.sub index de4259e4047..9865d6ea4d1 100755 --- a/build-aux/config.sub +++ b/build-aux/config.sub | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale | 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale |
| 6 | 6 | ||
| 7 | timestamp='2023-01-21' | 7 | timestamp='2023-06-26' |
| 8 | 8 | ||
| 9 | # This file is free software; you can redistribute it and/or modify it | 9 | # This file is free software; you can redistribute it and/or modify it |
| 10 | # under the terms of the GNU General Public License as published by | 10 | # under the terms of the GNU General Public License as published by |
| @@ -82,7 +82,7 @@ This is free software; see the source for copying conditions. There is NO | |||
| 82 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 82 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 83 | 83 | ||
| 84 | help=" | 84 | help=" |
| 85 | Try \`$me --help' for more information." | 85 | Try '$me --help' for more information." |
| 86 | 86 | ||
| 87 | # Parse command line | 87 | # Parse command line |
| 88 | while test $# -gt 0 ; do | 88 | while test $# -gt 0 ; do |
| @@ -130,7 +130,7 @@ IFS=$saved_IFS | |||
| 130 | # Separate into logical components for further validation | 130 | # Separate into logical components for further validation |
| 131 | case $1 in | 131 | case $1 in |
| 132 | *-*-*-*-*) | 132 | *-*-*-*-*) |
| 133 | echo Invalid configuration \`"$1"\': more than four components >&2 | 133 | echo "Invalid configuration '$1': more than four components" >&2 |
| 134 | exit 1 | 134 | exit 1 |
| 135 | ;; | 135 | ;; |
| 136 | *-*-*-*) | 136 | *-*-*-*) |
| @@ -145,7 +145,8 @@ case $1 in | |||
| 145 | nto-qnx* | linux-* | uclinux-uclibc* \ | 145 | nto-qnx* | linux-* | uclinux-uclibc* \ |
| 146 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | 146 | | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ |
| 147 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | 147 | | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ |
| 148 | | storm-chaos* | os2-emx* | rtmk-nova* | managarm-*) | 148 | | storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \ |
| 149 | | windows-* ) | ||
| 149 | basic_machine=$field1 | 150 | basic_machine=$field1 |
| 150 | basic_os=$maybe_os | 151 | basic_os=$maybe_os |
| 151 | ;; | 152 | ;; |
| @@ -943,7 +944,7 @@ $basic_machine | |||
| 943 | EOF | 944 | EOF |
| 944 | IFS=$saved_IFS | 945 | IFS=$saved_IFS |
| 945 | ;; | 946 | ;; |
| 946 | # We use `pc' rather than `unknown' | 947 | # We use 'pc' rather than 'unknown' |
| 947 | # because (1) that's what they normally are, and | 948 | # because (1) that's what they normally are, and |
| 948 | # (2) the word "unknown" tends to confuse beginning users. | 949 | # (2) the word "unknown" tends to confuse beginning users. |
| 949 | i*86 | x86_64) | 950 | i*86 | x86_64) |
| @@ -1285,7 +1286,7 @@ case $cpu-$vendor in | |||
| 1285 | ;; | 1286 | ;; |
| 1286 | 1287 | ||
| 1287 | *) | 1288 | *) |
| 1288 | echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 | 1289 | echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2 |
| 1289 | exit 1 | 1290 | exit 1 |
| 1290 | ;; | 1291 | ;; |
| 1291 | esac | 1292 | esac |
| @@ -1766,11 +1767,11 @@ case $os in | |||
| 1766 | ;; | 1767 | ;; |
| 1767 | none) | 1768 | none) |
| 1768 | ;; | 1769 | ;; |
| 1769 | kernel* ) | 1770 | kernel* | msvc* ) |
| 1770 | # Restricted further below | 1771 | # Restricted further below |
| 1771 | ;; | 1772 | ;; |
| 1772 | *) | 1773 | *) |
| 1773 | echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 | 1774 | echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 |
| 1774 | exit 1 | 1775 | exit 1 |
| 1775 | ;; | 1776 | ;; |
| 1776 | esac | 1777 | esac |
| @@ -1785,18 +1786,24 @@ case $kernel-$os in | |||
| 1785 | ;; | 1786 | ;; |
| 1786 | managarm-mlibc* | managarm-kernel* ) | 1787 | managarm-mlibc* | managarm-kernel* ) |
| 1787 | ;; | 1788 | ;; |
| 1789 | windows*-gnu* | windows*-msvc*) | ||
| 1790 | ;; | ||
| 1788 | -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* ) | 1791 | -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* ) |
| 1789 | # These are just libc implementations, not actual OSes, and thus | 1792 | # These are just libc implementations, not actual OSes, and thus |
| 1790 | # require a kernel. | 1793 | # require a kernel. |
| 1791 | echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 | 1794 | echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 |
| 1792 | exit 1 | 1795 | exit 1 |
| 1793 | ;; | 1796 | ;; |
| 1794 | -kernel* ) | 1797 | -kernel* ) |
| 1795 | echo "Invalid configuration \`$1': \`$os' needs explicit kernel." 1>&2 | 1798 | echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 |
| 1796 | exit 1 | 1799 | exit 1 |
| 1797 | ;; | 1800 | ;; |
| 1798 | *-kernel* ) | 1801 | *-kernel* ) |
| 1799 | echo "Invalid configuration \`$1': \`$kernel' does not support \`$os'." 1>&2 | 1802 | echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 |
| 1803 | exit 1 | ||
| 1804 | ;; | ||
| 1805 | *-msvc* ) | ||
| 1806 | echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 | ||
| 1800 | exit 1 | 1807 | exit 1 |
| 1801 | ;; | 1808 | ;; |
| 1802 | kfreebsd*-gnu* | kopensolaris*-gnu*) | 1809 | kfreebsd*-gnu* | kopensolaris*-gnu*) |
| @@ -1813,7 +1820,7 @@ case $kernel-$os in | |||
| 1813 | # Blank kernel with real OS is always fine. | 1820 | # Blank kernel with real OS is always fine. |
| 1814 | ;; | 1821 | ;; |
| 1815 | *-*) | 1822 | *-*) |
| 1816 | echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 | 1823 | echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 |
| 1817 | exit 1 | 1824 | exit 1 |
| 1818 | ;; | 1825 | ;; |
| 1819 | esac | 1826 | esac |
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 4678bad1050..43e4a37adf4 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | eval 'exec perl -wSx "$0" "$@"' | 35 | eval 'exec perl -wSx "$0" "$@"' |
| 36 | if 0; | 36 | if 0; |
| 37 | 37 | ||
| 38 | my $VERSION = '2022-01-27 18:49'; # UTC | 38 | my $VERSION = '2023-06-24 21:59'; # UTC |
| 39 | # The definition above must lie within the first 8 lines in order | 39 | # The definition above must lie within the first 8 lines in order |
| 40 | # for the Emacs time-stamp write hook (at end) to update it. | 40 | # for the Emacs time-stamp write hook (at end) to update it. |
| 41 | # If you change this file with Emacs, please let the write hook | 41 | # If you change this file with Emacs, please let the write hook |
| @@ -355,7 +355,7 @@ sub git_dir_option($) | |||
| 355 | . "(expected date/author/email):\n$author_line\n"; | 355 | . "(expected date/author/email):\n$author_line\n"; |
| 356 | 356 | ||
| 357 | # Format 'Copyright-paperwork-exempt: Yes' as a standard ChangeLog | 357 | # Format 'Copyright-paperwork-exempt: Yes' as a standard ChangeLog |
| 358 | # `(tiny change)' annotation. | 358 | # '(tiny change)' annotation. |
| 359 | my $tiny = (grep (/^(?:Copyright-paperwork-exempt|Tiny-change):\s+[Yy]es$/, @line) | 359 | my $tiny = (grep (/^(?:Copyright-paperwork-exempt|Tiny-change):\s+[Yy]es$/, @line) |
| 360 | ? ' (tiny change)' : ''); | 360 | ? ' (tiny change)' : ''); |
| 361 | 361 | ||
diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 99196fceef6..0343eaa72c1 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright | |||
| @@ -98,7 +98,8 @@ | |||
| 98 | # 6. Blank lines, even if preceded by the prefix, do not appear | 98 | # 6. Blank lines, even if preceded by the prefix, do not appear |
| 99 | # within the FSF copyright statement. | 99 | # within the FSF copyright statement. |
| 100 | # 7. Each copyright year is 2 or 4 digits, and years are separated by | 100 | # 7. Each copyright year is 2 or 4 digits, and years are separated by |
| 101 | # commas, "-", or "--". Whitespace may appear after commas. | 101 | # commas, "-", "--", or "\(en" (for troff). Whitespace may appear |
| 102 | # after commas. | ||
| 102 | # | 103 | # |
| 103 | # Environment variables: | 104 | # Environment variables: |
| 104 | # | 105 | # |
| @@ -137,7 +138,7 @@ | |||
| 137 | eval 'exec perl -wSx -0777 -pi "$0" "$@"' | 138 | eval 'exec perl -wSx -0777 -pi "$0" "$@"' |
| 138 | if 0; | 139 | if 0; |
| 139 | 140 | ||
| 140 | my $VERSION = '2023-01-11.04:24'; # UTC | 141 | my $VERSION = '2023-06-18.01:14'; # UTC |
| 141 | # The definition above must lie within the first 8 lines in order | 142 | # The definition above must lie within the first 8 lines in order |
| 142 | # for the Emacs time-stamp write hook (at end) to update it. | 143 | # for the Emacs time-stamp write hook (at end) to update it. |
| 143 | # If you change this file with Emacs, please let the write hook | 144 | # If you change this file with Emacs, please let the write hook |
| @@ -148,6 +149,7 @@ use warnings; | |||
| 148 | 149 | ||
| 149 | my $copyright_re = 'Copyright'; | 150 | my $copyright_re = 'Copyright'; |
| 150 | my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©|©)'; | 151 | my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©|©)'; |
| 152 | my $ndash_re = '(?:--?|\\\\\(en)'; | ||
| 151 | my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; | 153 | my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; |
| 152 | $holder ||= 'Free Software Foundation, Inc.'; | 154 | $holder ||= 'Free Software Foundation, Inc.'; |
| 153 | my $prefix_max = 5; | 155 | my $prefix_max = 5; |
| @@ -192,7 +194,7 @@ while (/(^|\n)(.{0,$prefix_max})$copyright_re/g) | |||
| 192 | $holder_re =~ s/\s/$ws_re/g; | 194 | $holder_re =~ s/\s/$ws_re/g; |
| 193 | my $stmt_remainder_re = | 195 | my $stmt_remainder_re = |
| 194 | "(?:$ws_re$circle_c_re)?" | 196 | "(?:$ws_re$circle_c_re)?" |
| 195 | . "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|--?))*" | 197 | . "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|$ndash_re))*" |
| 196 | . "((?:\\d\\d)?\\d\\d)$ws_re$holder_re"; | 198 | . "((?:\\d\\d)?\\d\\d)$ws_re$holder_re"; |
| 197 | if (/\G$stmt_remainder_re/) | 199 | if (/\G$stmt_remainder_re/) |
| 198 | { | 200 | { |
| @@ -215,7 +217,7 @@ if (defined $stmt_re) | |||
| 215 | if ($final_year != $this_year) | 217 | if ($final_year != $this_year) |
| 216 | { | 218 | { |
| 217 | # Update the year. | 219 | # Update the year. |
| 218 | $stmt =~ s/\b$final_year_orig\b/$final_year, $this_year/; | 220 | $stmt =~ s/(^|[^\d])$final_year_orig\b/$1$final_year, $this_year/; |
| 219 | } | 221 | } |
| 220 | if ($final_year != $this_year || $ENV{'UPDATE_COPYRIGHT_FORCE'}) | 222 | if ($final_year != $this_year || $ENV{'UPDATE_COPYRIGHT_FORCE'}) |
| 221 | { | 223 | { |
| @@ -231,17 +233,19 @@ if (defined $stmt_re) | |||
| 231 | # Make the use of intervals consistent. | 233 | # Make the use of intervals consistent. |
| 232 | if (!$ENV{UPDATE_COPYRIGHT_USE_INTERVALS}) | 234 | if (!$ENV{UPDATE_COPYRIGHT_USE_INTERVALS}) |
| 233 | { | 235 | { |
| 234 | $stmt =~ s/(\d{4})--?(\d{4})/join(', ', $1..$2)/eg; | 236 | $stmt =~ s/(\d{4})$ndash_re(\d{4})/join(', ', $1..$2)/eg; |
| 235 | } | 237 | } |
| 236 | else | 238 | else |
| 237 | { | 239 | { |
| 238 | my $ndash = $ARGV =~ /\.tex(i(nfo)?)?$/ ? "--" : "-"; | 240 | my $ndash = ($ARGV =~ /\.tex(i(nfo)?)?$/ ? "--" |
| 241 | : $ARGV =~ /\.(\d[a-z]*|man)$/ ? "\\(en" | ||
| 242 | : "-"); | ||
| 239 | 243 | ||
| 240 | $stmt =~ | 244 | $stmt =~ |
| 241 | s/ | 245 | s/ |
| 242 | (\d{4}) | 246 | (\d{4}) |
| 243 | (?: | 247 | (?: |
| 244 | (,\ |--?) | 248 | (,\ |$ndash_re) |
| 245 | ((??{ | 249 | ((??{ |
| 246 | if ($2 ne ', ') { '\d{4}'; } | 250 | if ($2 ne ', ') { '\d{4}'; } |
| 247 | elsif (!$3) { $1 + 1; } | 251 | elsif (!$3) { $1 + 1; } |
| @@ -252,7 +256,7 @@ if (defined $stmt_re) | |||
| 252 | 256 | ||
| 253 | # When it's 2, emit a single range encompassing all year numbers. | 257 | # When it's 2, emit a single range encompassing all year numbers. |
| 254 | $ENV{UPDATE_COPYRIGHT_USE_INTERVALS} == 2 | 258 | $ENV{UPDATE_COPYRIGHT_USE_INTERVALS} == 2 |
| 255 | and $stmt =~ s/\b(\d{4})\b.*\b(\d{4})\b/$1$ndash$2/; | 259 | and $stmt =~ s/(^|[^\d])(\d{4})\b.*(?:[^\d])(\d{4})\b/$1$2$ndash$3/; |
| 256 | } | 260 | } |
| 257 | 261 | ||
| 258 | # Format within margin. | 262 | # Format within margin. |