Bug 847508 - Add a mach bootstrap script for comm-central [r=gps]
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 07 Mar 2013 11:07:27 -0800
changeset 15096 4c46112cb67718e10cd8043d87984ef37b52acbd
parent 15095 7e545171ff419a438251212c72b659a52a7992e6
child 15097 f7575e7da0dc639f2dee91646691bde60f1ce486
push id898
push userbugzilla@standard8.plus.com
push dateMon, 13 May 2013 17:03:31 +0000
treeherdercomm-beta@3106694b14de [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs847508
Bug 847508 - Add a mach bootstrap script for comm-central [r=gps]
build/mach_bootstrap.py
build/pymake/make.py
new file mode 100644
--- /dev/null
+++ b/build/mach_bootstrap.py
@@ -0,0 +1,14 @@
+# 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/.
+
+from __future__ import unicode_literals
+
+import os, sys
+
+def bootstrap(topsrcdir, mozilla_dir=None):
+    if mozilla_dir is None:
+        mozilla_dir = os.path.join(topsrcdir, 'mozilla')
+    sys.path[0:0] = [mozilla_dir]
+    import build.mach_bootstrap
+    return build.mach_bootstrap.bootstrap(topsrcdir, mozilla_dir)
--- a/build/pymake/make.py
+++ b/build/pymake/make.py
@@ -1,8 +1,9 @@
+#!/usr/bin/env 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 distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # This is a wrapper around mozilla-central's pymake. If that isn't found then
 # this uses client.py to pull it in.
 
 import os