def main(conffile):
    commands = Commands(conffile)

    commands.logger.info ('> Recompiling client...')
    clienttime = time.time()
    if commands.checksources(0):
        commands.cleanbindirs(0)
        commands.recompile(0)
        commands.logger.info ('> Done in %.2f seconds'%(time.time()-clienttime))

    commands.logger.info ('> Recompiling server...')
    servertime = time.time()
    if commands.checksources(1):
        commands.cleanbindirs(1)
        commands.recompile(1)
        commands.logger.info ('> Done in %.2f seconds'%(time.time()-servertime))
示例#2
0
def main(conffile=None):
    commands = Commands(conffile)

    commands.logger.info('> Recompiling client...')
    clienttime = time.time()
    if commands.checksources(0):
        commands.cleanbindirs(0)
        commands.recompile(0)
        commands.logger.info('> Done in %.2f seconds' %
                             (time.time() - clienttime))

    commands.logger.info('> Recompiling server...')
    servertime = time.time()
    if commands.checksources(1):
        commands.cleanbindirs(1)
        commands.recompile(1)
        commands.logger.info('> Done in %.2f seconds' %
                             (time.time() - servertime))
示例#3
0
def recompile(conffile=None):
    commands = Commands(conffile)

    try:
        commands.logger.info('> Recompiling client...')
        clienttime = time.time()
        if commands.checksources(CLIENT):
            commands.cleanbindirs(CLIENT)
            commands.recompile(CLIENT)
            commands.logger.info('> Done in %.2f seconds' % (time.time() - clienttime))

        commands.logger.info('> Recompiling server...')
        servertime = time.time()
        if commands.checksources(SERVER):
            commands.cleanbindirs(SERVER)
            commands.recompile(SERVER)
            commands.logger.info('> Done in %.2f seconds' % (time.time() - servertime))
    except Exception:  # pylint: disable-msg=W0703
        commands.logger.exception('FATAL ERROR')
        sys.exit(1)
示例#4
0
def recompile(conffile=None):
    commands = Commands(conffile)

    try:
        commands.logger.info('> Recompiling client...')
        clienttime = time.time()
        if commands.checksources(CLIENT):
            commands.cleanbindirs(CLIENT)
            commands.recompile(CLIENT)
            commands.logger.info('> Done in %.2f seconds' %
                                 (time.time() - clienttime))

        commands.logger.info('> Recompiling server...')
        servertime = time.time()
        if commands.checksources(SERVER):
            commands.cleanbindirs(SERVER)
            commands.recompile(SERVER)
            commands.logger.info('> Done in %.2f seconds' %
                                 (time.time() - servertime))
    except Exception:  # pylint: disable-msg=W0703
        commands.logger.exception('FATAL ERROR')
        sys.exit(1)