# 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 distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os import sys
sys.path.insert(1, os.path.dirname(sys.path[0])) # noqa - don't warn about imports
from mozharness.base.log import FATAL from mozharness.base.script import BaseScript
mar_path = os.path.join(dirs["abs_input_dir"], "mar") if self._is_windows():
mar_path += ".exe" if mar_path and os.path.exists(mar_path):
self.chmod(mar_path, 0o755) if self.config.get("run_configure", True):
self._get_mozconfig()
self._run_configure()
# first determine the mozconfig path if c.get("src_mozconfig"):
self.info("Using in-tree mozconfig")
abs_mozconfig_path = os.path.join(dirs["abs_src_dir"], c["src_mozconfig"]) else:
self.fatal( "'src_mozconfig' must be in the config " "in order to determine the mozconfig."
)
# print its contents
self.read_from_file(abs_mozconfig_path, error_level=FATAL)
# finally, copy the mozconfig to a path that 'mach build' expects it to be
self.copyfile(
abs_mozconfig_path, os.path.join(dirs["abs_src_dir"], ".mozconfig")
)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.