@@ -74,54 +74,58 @@ function BuildInDir([string]$path) {
7474
7575 "⏳ (2/4) Executing 'cmake' to generate the Makefile..."
7676 & cmake ..
77- if ($lastExitCode -ne "0") { throw "Executing 'cmake ..' has failed " }
77+ if ($lastExitCode -ne "0") { throw "Executing 'cmake ..' exited with error code $lastExitCode " }
7878
7979 "⏳ (3/4) Executing 'make -j4' to compile and link..."
8080 & make -j4
81- if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed " }
81+ if ($lastExitCode -ne "0") { throw "Executing 'make -j4' exited with error code $lastExitCode " }
8282
8383 "⏳ (4/4) Executing 'ctest -V' to perform tests (optional)..."
8484 & ctest -V
85- if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed " }
85+ if ($lastExitCode -ne "0") { throw "Executing 'ctest -V' exited with error code $lastExitCode " }
8686
87- } elseif (Test-Path "$path/configure " -pathType leaf) {
88- "⏳ Building 📂$dirName by using 'configure '..."
87+ } elseif (Test-Path "$path/autogen.sh " -pathType leaf) {
88+ "⏳ Building 📂$dirName by using 'autogen.sh '..."
8989 Set-Location "$path/"
9090
91+ & ./autogen.sh --force
92+ if ($lastExitCode -ne "0") { throw "Executing './autogen.sh --force' exited with error code $lastExitCode" }
93+
9194 & ./configure
92- # if ($lastExitCode -ne "0") { throw "Script ' configure' exited with error code $lastExitCode" }
95+ if ($lastExitCode -ne "0") { throw "Executing './ configure' exited with error code $lastExitCode" }
9396
9497 & make -j4
95- if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed " }
98+ if ($lastExitCode -ne "0") { throw "Executing 'make -j4' exited with error code $lastExitCode " }
9699
97- & make test
98- if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }
99100
100- } elseif (Test-Path "$path/autogen.sh " -pathType leaf) {
101- "⏳ Building 📂$dirName by using 'autogen.sh '..."
101+ } elseif (Test-Path "$path/configure " -pathType leaf) {
102+ "⏳ Building 📂$dirName by using 'configure '..."
102103 Set-Location "$path/"
103104
104- & ./autogen.sh
105- if ($lastExitCode -ne "0") { throw "Script 'autogen.sh ' exited with error code $lastExitCode" }
105+ & ./configure
106+ # if ($lastExitCode -ne "0") { throw "Executing './configure ' exited with error code $lastExitCode" }
106107
107108 & make -j4
108109 if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
109110
111+ & make test
112+ if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }
113+
110114 } elseif (Test-Path "$path/build.gradle" -pathType leaf) {
111115 "⏳ Building 📂$dirName by using Gradle..."
112116 Set-Location "$path"
113117
114118 & gradle build
115- if ($lastExitCode -ne "0") { throw "'gradle build' has failed " }
119+ if ($lastExitCode -ne "0") { throw "Executing 'gradle build' exited with error code $lastExitCode " }
116120
117121 & gradle test
118- if ($lastExitCode -ne "0") { throw "'gradle test' has failed " }
122+ if ($lastExitCode -ne "0") { throw "Executing 'gradle test' exited with error code $lastExitCode " }
119123
120124 } elseif (Test-Path "$path/meson.build" -pathType leaf) {
121125 "⏳ Building 📂$dirName by using Meson..."
122126 Set-Location "$path"
123127 & meson . build --prefix=/usr/local
124- if ($lastExitCode -ne "0") { throw "'meson . build' has failed " }
128+ if ($lastExitCode -ne "0") { throw "Executing 'meson . build' exited with error code $lastExitCode " }
125129
126130 } elseif (Test-Path "$path/Imakefile" -pathType leaf) {
127131 "⏳ Building 📂$dirName by using Imakefile..."
@@ -152,7 +156,7 @@ function BuildInDir([string]$path) {
152156 Set-Location "$path/"
153157
154158 & ./compile.sh
155- if ($lastExitCode -ne "0") { throw "Script ' compile.sh' exited with error code $lastExitCode" }
159+ if ($lastExitCode -ne "0") { throw "Executing './ compile.sh' exited with error code $lastExitCode" }
156160
157161 & make -j4
158162 if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
@@ -162,7 +166,7 @@ function BuildInDir([string]$path) {
162166 Set-Location "$path/attower/src/build/DevBuild/"
163167
164168 & ./build.bat build-all-release
165- if ($lastExitCode -ne "0") { throw "Script 'build.bat' exited with error code $lastExitCode" }
169+ if ($lastExitCode -ne "0") { throw "Executing 'build.bat build-all-release ' exited with error code $lastExitCode" }
166170
167171 } elseif (Test-Path "$path/$dirName" -pathType container) {
168172 "⏳ No make rule found, trying subfolder 📂$($dirName)..."
@@ -192,4 +196,4 @@ try {
192196}
193197```
194198
195- * (generated by convert-ps2md.ps1 using the comment-based help of build-repo.ps1 as of 03/27 /2024 17:36:23 )*
199+ * (generated by convert-ps2md.ps1 using the comment-based help of build-repo.ps1 as of 05/19 /2024 10:25:16 )*
0 commit comments