security/generate_certdata.py
author cku <cku@mozilla.com>
Mon, 16 Oct 2017 16:22:07 +0800
changeset 449811 bc52b17816410be51ac941f524e3793ed7a8b4c7
parent 437012 cb773c661e0ca0bf297e977343076bef34411523
child 478273 f9a66e05d90ea6e12616e97b1cc52f9727c4ddc7
permissions -rw-r--r--
Bug 1399787 - Part 5. Implement the PDFium process. r=jwatt MozReview-Commit-ID: 502jB9DAeIC

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