1 if (-not
(test-path env
:MOZILLABUILD
)) {
2 echo "No MOZILLABUILD environment variable found, terminating."
6 $mypath = $MyInvocation.MyCommand
.Path
7 $machpath = ($mypath -replace
'\\', '/').substring
(0, $mypath.length
- 4)
9 if ($machpath.contains
(' ')) {
11 The repository path contains whitespace which currently isn't supported
in mach
.ps1
.
12 Please run MozillaBuild manually for now
.
17 for ($i = 0; $i -lt $args.length; $i++) {
19 if ($arg.contains(' ')) {
21 The command contains whitespace which currently isn
't supported in mach.ps1.
22 Please run MozillaBuild manually for now.
28 & "$env:MOZILLABUILD/start-shell.bat" $machpath $args