[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/improve-tests, updated. gawk-4.1
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/improve-tests, updated. gawk-4.1.0-3094-g6daeb51 |
Date: |
Thu, 19 Apr 2018 15:05:11 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, feature/improve-tests has been updated
via 6daeb51696c026b5bed39b458556fdfc25838d84 (commit)
from 0600528110146ed47517e3e15550c660270705b2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=6daeb51696c026b5bed39b458556fdfc25838d84
commit 6daeb51696c026b5bed39b458556fdfc25838d84
Author: Arnold D. Robbins <address@hidden>
Date: Thu Apr 19 22:04:52 2018 +0300
Further small improvements in pc/GenMakefileTst.awk.
diff --git a/pc/ChangeLog b/pc/ChangeLog
index 771d0e3..629fe04 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,6 +1,8 @@
2018-04-19 Arnold D. Robbins <address@hidden>
* GenMakefileTst.awk: Improve the 'Expect ...' messages.
+ Make the regexps for target names consistent. Remove
+ an extraneous semi-colon.
2018-04-18 Arnold D. Robbins <address@hidden>
diff --git a/pc/GenMakefileTst.awk b/pc/GenMakefileTst.awk
index b997ae4..a465ca7 100644
--- a/pc/GenMakefileTst.awk
+++ b/pc/GenMakefileTst.awk
@@ -55,7 +55,7 @@ BEGIN {
}
# Empty targets, one after the other
-in_recipe && /^[[:alpha:]_][[:alnum:]_]*:/ {
+in_recipe && /^[[:alpha:]_][-[:alnum:]_]*:/ {
print_recipe()
start_new_recipe()
next
@@ -135,7 +135,7 @@ function print_recipe( i, start)
break
else if (recipe_lines[i] ~ /^\t@/) {
recipe_lines[i] = "address@hidden"
substr(recipe_lines[i], 3)
- break;
+ break
}
}
@@ -149,7 +149,7 @@ function print_recipe( i, start)
function start_new_recipe()
{
# get the name of the target
- name = gensub(/(^[[:alpha:]_][[:alnum:]_])*:.*/, "\\1", 1, $0)
+ name = gensub(/(^[[:alpha:]_][-[:alnum:]_])*:.*/, "\\1", 1, $0)
delete recipe_lines
line = 0
-----------------------------------------------------------------------
Summary of changes:
pc/ChangeLog | 2 ++
pc/GenMakefileTst.awk | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/improve-tests, updated. gawk-4.1.0-3094-g6daeb51,
Arnold Robbins <=