]>
git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - kernel/scripts/configdiff.py
2 ###############################################################################
3 # IPFire.org - An Open Source Firewall Solution #
4 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
5 ###############################################################################
10 filelist
= sys
.argv
[1:]
15 for line
in f
.readlines():
21 m
= re
.match("^# (.*) is not set$", line
)
26 m
= re
.match("^(.*)=(.*)$", line
)
32 option_value
= "%s=%s" % (option
, value
or "")
33 options
.append(option_value
)
40 for line
in f
.readlines():
41 m
= re
.match("^# (.*)$", line
)
44 if not _section
.startswith("CONFIG_") and \
45 not _section
.endswith("Kernel Configuration") and \
46 not _section
.startswith("Automatically generated file;"):
52 m
= re
.match("^# (.*) is not set$", line
)
57 m
= re
.match("^(.*)=(.*)$", line
)
65 # Ignore all options CONFIG_HAVE_ because we cannot
67 elif option
.startswith("CONFIG_HAVE_"):
70 option_value
= "%s=%s" % (option
, value
)
71 if not option_value
in options
:
75 print "# %s" % section
80 print "# %s is not set" % option
82 print "%s=%s" % (option
, value
)