[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[automake-commit] branch master updated: automake: avoid unnecessary use
From: |
Karl Berry |
Subject: |
[automake-commit] branch master updated: automake: avoid unnecessary use of \K. |
Date: |
Thu, 21 Dec 2023 18:47:04 -0500 |
This is an automated email from the git hooks/post-receive script.
karl pushed a commit to branch master
in repository automake.
View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=95c0aa1825a1d4c1510393a5829552b55ebb7f13
The following commit(s) were added to refs/heads/master by this push:
new 95c0aa182 automake: avoid unnecessary use of \K.
95c0aa182 is described below
commit 95c0aa1825a1d4c1510393a5829552b55ebb7f13
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Thu Dec 21 15:46:43 2023 -0800
automake: avoid unnecessary use of \K.
This fixes (part of) https://bugs.gnu.org/67891
and follows up on https://bugs.gnu.org/55025.
* bin/automake.in (generate_makefile) <posix>: avoid use of
\K when removing comment and blank lines before a .POSIX target,
since Solaris 10 has perl 5.8.4, and \K was added in 5.10.
---
bin/automake.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/automake.in b/bin/automake.in
index 0a9b4a3e2..26c9f46b1 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -8132,7 +8132,7 @@ sub generate_makefile
# otherwise, the behavior of "make" is unspecified by POSIX.
if (option 'posix')
{
- $output =~ s/^((#.*)?\n)*\K/.POSIX:\n\n/;
+ $output =~ s/^((#.*)?\n)*/.POSIX:\n\n/;
}
# Decide whether we must update the output file or not.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [automake-commit] branch master updated: automake: avoid unnecessary use of \K.,
Karl Berry <=