author Robert Strong <>
Wed, 19 Oct 2016 13:27:01 -0700
changeset 348675 4d6033fadbc589a5f6170803e6af65ed8de5c96d
parent 211550 8aac3c8dc7bbe519da1accfe062adb34397296fb
permissions -rwxr-xr-x
Client code for Bug 1309125 - Allow configuration of the download throttle via the update.xml. r=mhowell, a=rkothari

#!/usr/bin/env python


A drop-in or mostly drop-in replacement for GNU make.

import sys, os
import pymake.command, pymake.process

import gc

if __name__ == '__main__':
  if 'TINDERBOX_OUTPUT' in os.environ:
    # When building on mozilla build slaves, execute mozmake instead. Until bug
    # 978211, this is the easiest, albeit hackish, way to do this.
    import subprocess
    mozmake = os.path.join(os.path.dirname(__file__), '..', '..',
    cmd = [mozmake]
    shell = os.environ.get('SHELL')
    if shell and not shell.lower().endswith('.exe'):
        cmd += ['SHELL=%s.exe' % shell]

  sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
  sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0)


  pymake.command.main(sys.argv[1:], os.environ, os.getcwd(), cb=sys.exit)
  assert False, "Not reached"