Ignore:
Timestamp:
12/14/06 11:05:06 (5 years ago)
Author:
wd
Message:

Fix dumb variable name typo (which was perfectly typo'd across three
instances?) and sort module names in the config option. Alose use Clone()
and not Copy() per scons 0.96.93 update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/SConstruct

    r793 r797  
    4949 
    5050# Find our availabe modules 
    51 availabe_modules = [] 
     51available_modules = [] 
    5252for e in os.listdir('modules'): 
    5353    if os.path.exists('modules/%s/SConscript' % e): 
    54         availabe_modules.append(e) 
     54        available_modules.append(e) 
     55available_modules.sort() 
    5556 
    5657############################################################################### 
     
    7172    ('fdsetsize', 'Override value of FD_SETSIZE', 0), 
    7273    BoolOption('ipv6', 'Enable IPv6 support', 1), 
    73     ListOption('modules', 'Modules to build', 'all', availabe_modules), 
     74    ListOption('modules', 'Modules to build', 'all', available_modules), 
    7475    PackageOption('openssl', 'Enable OpenSSL support', 'yes'), 
    7576    ListOption('poller', 'Socket polling method', 'auto', 
     
    308309# Add the requested modules too! 
    309310if str(env['modules']) == 'all': 
    310     modules = str.join(',', availabe_modules) 
     311    modules = str.join(',', available_modules) 
    311312elif str(env['modules']) == 'none': 
    312313    modules = '' 
     
    317318    if not m: continue 
    318319    # create a modified env for each module 
    319     modenv = env.Copy() 
     320    modenv = env.Clone() 
    320321    env.SConscript('modules/%s/SConscript' % m, exports = ['modenv']) 
    321322    del modenv 
Note: See TracChangeset for help on using the changeset viewer.