'Copy the current .config file to the config.<name>[.<n>]'

def config_record(self, name):

    i = 1
    to = os.path.join(self.config_dir, ('config.%s' % name))
    while os.path.exists(to):
        i += 1
        to = os.path.join(self.config_dir, ('config.%s.%d' % (name, i)))
    shutil.copyfile(os.path.join(self.build_dir, '.config'), to)
