From 593e429b6e5d2e6c94230f15d7a3967db52b7bb8 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Sat, 16 Jul 2005 02:18:25 +0000 Subject: [PATCH] rename stuff to write out 'config' instead of 'config.common'. This is my first ever attempt to python hackery. fear. svn path=/trunk/kernel/source/linux-2.6-2.6.12/; revision=3520 --- debian/bin/split.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/bin/split.py b/debian/bin/split.py index a397cfd1c..9aadd0675 100755 --- a/debian/bin/split.py +++ b/debian/bin/split.py @@ -1,11 +1,11 @@ #!/usr/bin/python # -# Scans underlying directory structure for files with names config.ext -# where .ext is not .stub, .common or .default, and extracts a common +# Scans underlying directory structure for files with names config.* +# where .* is not .stub or .default, and extracts a common # set of config options from them. The resulting set of options is -# written into the config.common file. On the second pass each config.ext +# written into the 'config' file. On the second pass each config.* # file is parsed to remove the common config options found in -# config.common, with the results written to config.ext.stub. +# config, with the results written to config.*.stub. # import os, string, sys @@ -44,7 +44,7 @@ def walk_callback(arg, dir, names): if names.count('.svn'): names.remove('.svn') for name in names: base, ext = os.path.splitext(name) - if(base == 'config' and ext not in ('.default', '.stub', '.common')): + if(base == 'config' and ext not in ('.default', '.stub', '')): fname = os.path.join(dir,name) conffiles.append(fname) print 'Processing ' + fname + ' ... ', @@ -55,8 +55,8 @@ def walk_callback(arg, dir, names): # Main routine # os.path.walk('.', walk_callback, None) -print 'Writing the config.common output file ... ', -write_out(common, 'config.common') +print 'Writing the config output file ... ', +write_out(common, 'config') print 'done.' for fname in conffiles: print 'Writing the ' + fname + '.stub output file ... ',