mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-29 11:24:27 +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/"
|
set-location "$Path/"
|
||||||
|
|
||||||
& ./configure
|
& ./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
|
& make -j4
|
||||||
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
|
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) {
|
} elseif (test-path "$Path/autogen.sh" -pathType leaf) {
|
||||||
"🔨 Building 📂$DirName using 'autogen.sh'..."
|
"🔨 Building 📂$DirName using 'autogen.sh'..."
|
||||||
set-location "$Path/"
|
set-location "$Path/"
|
||||||
|
Loading…
Reference in New Issue
Block a user