2 # SPDX-License-Identifier: GPL-2.0+
4 # Usage: configcheck.sh .config .config-template
6 # Copyright (C) IBM Corporation, 2011
8 # Authors: Paul E. McKenney <paulmck@linux.ibm.com>
10 T
=${TMPDIR-/tmp}/abat-chk-config.sh.$$
16 cat $2 |
sed -e 's/\(.*\)=n/# \1 is not set/' -e 's/^#CHECK#//' |
17 grep -v '^CONFIG_INITRAMFS_SOURCE' |
20 print "if grep -q \"" $0 "\" < '"$T/.config"'";
25 print "\tif grep -q \"" $2 "\" < '"$T/.config"'";
27 print "\t\tif test \"$firsttime\" = \"\""
29 print "\t\t\tfirsttime=1"
31 print "\t\techo \":" $2 ": improperly set\"";
36 print "\tif test \"$firsttime\" = \"\""
38 print "\t\tfirsttime=1"
40 print "\techo \":" $0 ": improperly set\"";