Bug 1679927 Part 1: Make AppleVTDecoder check color depth and use 10-bit YUV420 when...
[gecko.git] / mach.ps1
blobdeec8a18322d4db630997c370daebc6d6a7744bb
1 $mypath = $MyInvocation.MyCommand.Path
2 $machpath = ($mypath -replace '\\', '/').substring(0, $mypath.length - 4)
4 if (-not (test-path env:MACH_PS1_USE_MOZILLABUILD)) {
5 python $machpath $args
6 exit $lastexitcode
9 if (-not (test-path env:MOZILLABUILD)) {
10 echo "No MOZILLABUILD environment variable found, terminating."
11 exit 1
14 if ($machpath.contains(' ')) {
15 echo @'
16 The repository path contains whitespace which currently isn't supported in mach.ps1.
17 Please run MozillaBuild manually for now.
19 exit 1
22 for ($i = 0; $i -lt $args.length; $i++) {
23 $arg = $args[$i]
24 if ($arg.contains(' ')) {
25 echo @'
26 The command contains whitespace which currently isn't supported in mach.ps1.
27 Please run MozillaBuild manually for now.
29 exit 1
33 & "$env:MOZILLABUILD/start-shell.bat" $machpath $args
34 exit $lastexitcode