2007-09-10 10:40:50 +00:00
|
|
|
#!/usr/bin/env python
|
2006-09-03 15:43:13 +00:00
|
|
|
|
2006-09-08 09:26:50 +00:00
|
|
|
import optparse, os.path, sys
|
2006-09-03 15:43:13 +00:00
|
|
|
from debian_linux.kconfig import *
|
|
|
|
|
2006-09-21 18:14:35 +00:00
|
|
|
def merge(output, *config):
|
2007-06-17 11:09:00 +00:00
|
|
|
kconfig = KconfigFile()
|
2006-09-21 18:14:35 +00:00
|
|
|
for c in config:
|
|
|
|
kconfig.read(file(c))
|
|
|
|
file(output, "w").write(str(kconfig))
|
2006-09-08 09:09:17 +00:00
|
|
|
|
2006-09-03 15:43:13 +00:00
|
|
|
if __name__ == '__main__':
|
2006-09-21 18:14:35 +00:00
|
|
|
sys.exit(merge(*sys.argv[1:]))
|