Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Mon, 02 Jan 2017 22:27:03
Message-Id: 1483396003.bfde45d5fd1840fe604d024617e8f4dc1edf5430.robbat2@gentoo
1 commit: bfde45d5fd1840fe604d024617e8f4dc1edf5430
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 22:26:00 2017 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 22:26:43 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=bfde45d5
7
8 gen_funcs: clean whitespace in kconfig_get_opt.
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 gen_funcs.sh | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/gen_funcs.sh b/gen_funcs.sh
16 index d669548..6234189 100755
17 --- a/gen_funcs.sh
18 +++ b/gen_funcs.sh
19 @@ -540,7 +540,7 @@ function kconfig_get_opt() {
20 kconfig="$1"
21 optname="$2"
22 sed -n "${kconfig}" \
23 - -e "/^#\? \?${optname}[ =].*/{ s/.*${optname}[ =]//g; s/is not set//g; p; q }"
24 + -e "/^#\? \?${optname}[ =].*/{ s/.*${optname}[ =]//g; s/is not set\| +//g; p; q }"
25 }
26
27 function kconfig_set_opt() {