Improve make-repo.ps1

This commit is contained in:
Markus Fleschutz 2021-07-02 17:09:52 +02:00
parent e7cbe11b94
commit 8733e87c4c

View File

@ -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/"