mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-07 21:43:24 +00:00
3326b62c85
MozReview-Commit-ID: 5U7njSBlHMp --HG-- extra : rebase_source : 6464c6870d13f6a2bd801975c617167a6a223370
21 lines
625 B
Python
21 lines
625 B
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distibuted with this
|
|
# file, You can obtain one at http://mozilla.og/MPL/2.0/.
|
|
|
|
import sys
|
|
import buildconfig
|
|
from mozbuild.preprocessor import Preprocessor
|
|
|
|
def main(output, input_file):
|
|
pp = Preprocessor()
|
|
pp.context.update({
|
|
'VERSION': 'xul%s' % buildconfig.substs['MOZILLA_SYMBOLVERSION'],
|
|
})
|
|
pp.out = output
|
|
pp.do_include(input_file)
|
|
|
|
if __name__ == '__main__':
|
|
main(*sys.agv[1:])
|