mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 09:04:18 +01:00
Improve make-repo.ps1
This commit is contained in:
parent
e7cbe11b94
commit
8733e87c4c
@ -30,11 +30,14 @@ function MakeDir { param($Path)
|
||||
set-location "$Path/"
|
||||
|
||||
& ./configure
|
||||
if ($lastExitCode -ne "0") { throw "Script 'configure' exited with error code $lastExitCode" }
|
||||
#if ($lastExitCode -ne "0") { throw "Script 'configure' exited with error code $lastExitCode" }
|
||||
|
||||
& make -j4
|
||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
||||
|
||||
& make test
|
||||
if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }
|
||||
|
||||
} elseif (test-path "$Path/autogen.sh" -pathType leaf) {
|
||||
"🔨 Building 📂$DirName using 'autogen.sh'..."
|
||||
set-location "$Path/"
|
||||
|
Loading…
Reference in New Issue
Block a user