Bug 1687263: part 4) Defer and in some cases avoid removing spellchecking-ranges...
[gecko.git] / mach.ps1
blob4abd491a84645a51ef9a7a125de16ab238fd58c3
1 if (-not (test-path env:MOZILLABUILD)) {
2 echo "No MOZILLABUILD environment variable found, terminating."
3 exit 1
6 $mypath = $MyInvocation.MyCommand.Path
7 $machpath = ($mypath -replace '\\', '/').substring(0, $mypath.length - 4)
9 if ($machpath.contains(' ')) {
10 echo @'
11 The repository path contains whitespace which currently isn't supported in mach.ps1.
12 Please run MozillaBuild manually for now.
14 exit 1
17 for ($i = 0; $i -lt $args.length; $i++) {
18 $arg = $args[$i]
19 if ($arg.contains(' ')) {
20 echo @'
21 The command contains whitespace which currently isn't supported in mach.ps1.
22 Please run MozillaBuild manually for now.
24 exit 1
28 & "$env:MOZILLABUILD/start-shell.bat" $machpath $args
29 exit $lastexitcode