]>
git.ipfire.org Git - ipfire-3.x.git/blob - kernel/scripts/configcommon.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:]
17 for filename
in filelist
:
20 for line
in f
.readlines():
24 if line
.startswith("# Automatically generated file;"):
27 if line
.endswith("Kernel Configuration"):
30 if line
.startswith("# Compiler:"):
35 m
= re
.match("^# (.*) is not set$", line
)
40 m
= re
.match("^(.*)=(.*)$", line
)
46 option_value
= "%s=%s" % (option
, value
or "")
49 options_counter
[option_value
] += 1
53 options_counter
[option_value
] = 1
62 m
= re
.match("^# (.*) is not set$", line
)
64 if options_counter
.get("%s=n" % m
.group(1), 0) == len(filelist
):
65 print "# %s is not set" % m
.group(1)
69 m
= re
.match("^(.*)=(.*)$", line
)
71 if options_counter
.get(m
.group(0), 0) == len(filelist
):