Changeset 13fded3 in mainline


Ignore:
Timestamp:
2006-01-15T14:23:57Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c0d692
Parents:
214e89e3
Message:

allow setting ARCH from Makefile argument

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r214e89e3 r13fded3  
    153153
    154154all:
    155         tools/config.py default
     155        tools/config.py default $(ARCH)
    156156        $(MAKE) -C . build
    157157
  • tools/config.py

    r214e89e3 r13fded3  
    418418
    419419    outf.write('\n')
    420     outf.write('REVISION=%s\n' % commands.getoutput('svnversion . 2> /dev/null'))
    421     outf.write('TIMESTAMP=%s\n' % commands.getoutput('date "+%Y-%m-%d %H:%M:%S"'))
     420    outf.write('REVISION = %s\n' % commands.getoutput('svnversion . 2> /dev/null'))
     421    outf.write('TIMESTAMP = %s\n' % commands.getoutput('date "+%Y-%m-%d %H:%M:%S"'))
    422422    outf.close()
    423423    f.close()
     
    431431        dlg = NoDialog()
    432432
    433     if len(sys.argv) == 2 and sys.argv[1]=='default':
     433    if len(sys.argv) >= 2 and sys.argv[1]=='default':
    434434        defmode = True
    435435    else:
     
    440440    if os.path.exists(OUTPUT):
    441441        read_defaults(OUTPUT, defaults)
     442
     443        # Get ARCH from command line if specified       
     444    if len(sys.argv) >= 3:
     445        defaults['ARCH'] = sys.argv[2]
    442446
    443447    # Dry run only with defaults
Note: See TracChangeset for help on using the changeset viewer.