security/generate_certdata.py
author Cosmin Sabou <csabou@mozilla.com>
Mon, 25 Feb 2019 20:31:13 +0200
changeset 460946 d59858e71dee882e1975b947037a77aca05d239b
parent 421549 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
child 519339 75cabbaa36032748e34b1e6c030046ebe2bbffef
permissions -rw-r--r--
Backed out changeset 4d220064bcf8 (bug 1529681) for causing Windows 2012 AArch64 build bustages. CLOSED TREE

#!/usr/bin/env python
#
# This exists to paper over differences between gyp's `action` definitions
# and moz.build `GENERATED_FILES` semantics.

import buildconfig
import os
import subprocess


def main(output, *inputs):
    env = dict(os.environ)
    env['PERL'] = str(buildconfig.substs['PERL'])
    output.write(subprocess.check_output([buildconfig.substs['PYTHON'],
                                          inputs[0], inputs[2]], env=env))
    return None