From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 3/3] tags: Process Kconfig files in a single pass
Date: Tue, 21 Mar 2017 13:55:31 +0300 [thread overview]
Message-ID: <20170321105531.11896-4-antonynpavlov@gmail.com> (raw)
In-Reply-To: <20170321105531.11896-1-antonynpavlov@gmail.com>
This is an adoption of the linux kernel commit
| commit a281b8569e9eb4beb1651c92145271555ba05f0c
| Author: Michal Marek <mmarek@suse.com>
| Date: Wed Oct 14 11:17:13 2015 +0200
|
| tags: Process Kconfig files in a single pass
|
| Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
scripts/tags.sh | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 22a5cc4bf..8ae44642a 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -154,10 +154,7 @@ exuberant()
all_kconfigs | xargs $1 -a \
--langdef=kconfig --language-force=kconfig \
- --regex-kconfig='/^[[:blank:]]*(menu|)config[[:blank:]]+([[:alnum:]_]+)/\2/'
-
- all_kconfigs | xargs $1 -a \
- --langdef=kconfig --language-force=kconfig \
+ --regex-kconfig='/^[[:blank:]]*(menu|)config[[:blank:]]+([[:alnum:]_]+)/\2/' \
--regex-kconfig='/^[[:blank:]]*(menu|)config[[:blank:]]+([[:alnum:]_]+)/CONFIG_\2/'
}
@@ -193,9 +190,7 @@ emacs()
--regex='/PCI_OP_WRITE\(([a-z]*[a-z]).*[1-4]\)/pci_bus_write_config_\1/'
all_kconfigs | xargs $1 -a \
- --regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'
-
- all_kconfigs | xargs $1 -a \
+ --regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/' \
--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/CONFIG_\3/'
}
--
2.11.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2017-03-21 10:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 10:55 [PATCH 0/3] scripts/tags.sh: adopt some linux kernel commits Antony Pavlov
2017-03-21 10:55 ` [PATCH 1/3] scripts/tags.sh: drop __TestClearPage*() helpers Antony Pavlov
2017-03-21 10:55 ` [PATCH 2/3] tags: Do not try to index defconfigs Antony Pavlov
2017-03-21 10:55 ` Antony Pavlov [this message]
2017-03-22 7:10 ` [PATCH 0/3] scripts/tags.sh: adopt some linux kernel commits Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170321105531.11896-4-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox