Changeset 54257ba in mainline for tools/config.py


Ignore:
Timestamp:
2005-12-07T16:59:37Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
940cac0
Parents:
45ab770
Message:

Added compile tag to build system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config.py

    r45ab770 r54257ba  
    310310            if cmd == 'saveas':
    311311                outf.write('%s = %s\n' % (args[1],defaults[args[0]]))
    312                
     312            elif cmd == 'shellcmd':
     313                varname = args[0]
     314                args = args[1:]
     315                for i,arg in enumerate(args):
     316                    if arg.startswith('$'):
     317                        args[i] = defaults[arg[1:]]
     318
     319                subc = os.popen(' '.join(args),'r')
     320                data = subc.read().strip()
     321                if subc.close():
     322                    raise RuntimeError('Error running: %s' % ' '.join(args))
     323                outf.write('%s = %s\n' % (varname,data))
    313324            continue
    314325           
Note: See TracChangeset for help on using the changeset viewer.