mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Move the build sets to .bset naming.
This commit is contained in:
@@ -431,15 +431,15 @@ class build:
|
||||
package = packages['main']
|
||||
return package.name()
|
||||
|
||||
def list_configs(opts, _defaults):
|
||||
def list_configs(opts, _defaults, ext = '.cfg'):
|
||||
configs = []
|
||||
for cp in opts.expand('%{_configdir}', _defaults).split(':'):
|
||||
print 'Examining: %s' % (os.path.abspath(cp))
|
||||
configs += glob.glob(os.path.join(cp, '*.cfg'))
|
||||
configs += glob.glob(os.path.join(cp, '*%s' % (ext)))
|
||||
for c in sorted(configs):
|
||||
config = os.path.basename(c)
|
||||
if config.endswith('.cfg'):
|
||||
config = config[:-4]
|
||||
if config.endswith(ext):
|
||||
config = config[:0 - len(ext)]
|
||||
print ' ', config
|
||||
|
||||
def run(args):
|
||||
|
Reference in New Issue
Block a user