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