3 # config_override.sh base override
5 # Combines base and override, removing any Kconfig options from base
6 # that conflict with any in override, concatenating what remains and
7 # sending the result to standard output.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, you can access it online at
21 # http://www.gnu.org/licenses/gpl-2.0.html.
23 # Copyright (C) IBM Corporation, 2017
25 # Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
32 echo Base
file $base unreadable
!!!
41 echo Override
file $override unreadable
!!!
45 T
=${TMPDIR-/tmp}/config_override.sh.$$
49 sed < $override -e 's/^/grep -v "/' -e 's/=.*$/="/' |