]>
git.ipfire.org Git - ipfire-3.x.git/blob - kernel/scripts/configdiff.py
166acd747c3e916fe7703527bfdd8ecaffa1b17e
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;"):
54 m
= re
.match("^# (.*) is not set$", line
)
59 m
= re
.match("^(.*)=(.*)$", line
)
67 # Ignore all options CONFIG_HAVE_ because we cannot
69 elif option
.startswith("CONFIG_HAVE_"):
72 option_value
= "%s=%s" % (option
, value
)
73 if not option_value
in options
:
77 print "# %s" % section
82 print "# %s is not set" % option
84 print "%s=%s" % (option
, value
)