security/generate_certdata.py
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Thu, 08 Nov 2018 18:13:19 +0000
changeset 501123 54bc3b67f80112dbd19242b388b1a93f503b19e1
parent 478273 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
permissions -rw-r--r--
No bug - Tagging 222184270b1be4dd8be3be13e9ec3dd38da8d9e2 with DEVEDITION_64_0b8_BUILD1 a=release CLOSED TREE DONTBUILD

#!/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