From e936628a1bb6e348f096644ff5583c9b11c67790 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 7 Mar 2025 07:32:28 +0100 Subject: [PATCH] Updated build-repo.ps1 --- scripts/build-repo.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/build-repo.ps1 b/scripts/build-repo.ps1 index b87e44a4..097ef001 100755 --- a/scripts/build-repo.ps1 +++ b/scripts/build-repo.ps1 @@ -9,7 +9,7 @@ PS> ./build-repo.ps1 C:\Repos\ninja ⏳ Building πŸ“‚ninja by using CMake... ... - βœ… Repo πŸ“‚ninja built successfully in 47s. + βœ… Build of πŸ“‚ninja succeeded in 47s, results in: πŸ“‚C:\Repos\ninja\_results .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -22,7 +22,7 @@ function BuildFolder([string]$path) { $dirName = (Get-Item "$path").Name if (Test-Path "$path/CMakeLists.txt" -pathType leaf) { "⏳ (1/4) Building πŸ“‚$dirName by using CMake..." - $global:results = "$path/_build_results/" + $global:results = "$path/_results/" if (-not(Test-Path $global:results -pathType container)) { & mkdir $global:results } @@ -121,7 +121,7 @@ function BuildFolder([string]$path) { Set-Location "$path/attower/src/build/DevBuild/" & ./build.bat build-core-release if ($lastExitCode -ne 0) { throw "Executing 'build.bat' failed with exit code $lastExitCode" } - $global:results = "$path\attower\Executables\" + $global:results = "$path\attower\Executables" } elseif (Test-Path "$path/$dirName" -pathType container) { "⏳ No make rule found, trying subfolder πŸ“‚$($dirName)..." @@ -145,9 +145,9 @@ try { $repoDirName = (Get-Item "$path").Name [int]$elapsed = $stopWatch.Elapsed.TotalSeconds if ($global:results -eq "") { - "βœ… Repo πŸ“‚$repoDirName built successfully in $($elapsed)s." + "βœ… Build of πŸ“‚$repoDirName succeeded in $($elapsed)s." } else { - "βœ… Repo πŸ“‚$repoDirName built successfully in $($elapsed)s, results in: πŸ“‚$($global:results)" + "βœ… Build of πŸ“‚$repoDirName succeeded in $($elapsed)s, results in: πŸ“‚$($global:results)" } exit 0 # success } catch {