Replace emoji in make-repo.ps1

This commit is contained in:
Markus Fleschutz 2021-07-02 16:22:17 +02:00
parent 559699e380
commit 33e25dae08

View File

@ -10,7 +10,7 @@ param($RepoDir = "$PWD")
function MakeDir { param($Path) function MakeDir { param($Path)
$DirName = (get-item "$Path").Name $DirName = (get-item "$Path").Name
if (test-path "$Path/CMakeLists.txt" -pathType leaf) { if (test-path "$Path/CMakeLists.txt" -pathType leaf) {
" Building 📂$DirName using CMakeLists.txt to subfolder BuildFiles..." "🔨 Building 📂$DirName using CMakeLists.txt to subfolder BuildFiles..."
if (-not(test-path "$Path/BuildFiles/" -pathType container)) { if (-not(test-path "$Path/BuildFiles/" -pathType container)) {
& mkdir "$Path/BuildFiles/" & mkdir "$Path/BuildFiles/"
} }
@ -26,7 +26,7 @@ function MakeDir { param($Path)
if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" } if ($lastExitCode -ne "0") { throw "Executing 'make test' has failed" }
} elseif (test-path "$Path/configure" -pathType leaf) { } elseif (test-path "$Path/configure" -pathType leaf) {
" Building 📂$DirName using 'configure'..." "🔨 Building 📂$DirName using 'configure'..."
set-location "$Path/" set-location "$Path/"
& ./configure & ./configure
@ -36,7 +36,7 @@ function MakeDir { param($Path)
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } if ($lastExitCode -ne "0") { throw "Executing 'make -j4' 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/"
& ./autogen.sh & ./autogen.sh
@ -46,7 +46,7 @@ function MakeDir { param($Path)
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$Path/build.gradle" -pathType leaf) { } elseif (test-path "$Path/build.gradle" -pathType leaf) {
" Building 📂$DirName using build.gradle..." "🔨 Building 📂$DirName using build.gradle..."
set-location "$Path" set-location "$Path"
& gradle build & gradle build
@ -56,7 +56,7 @@ function MakeDir { param($Path)
if ($lastExitCode -ne "0") { throw "'gradle test' has failed" } if ($lastExitCode -ne "0") { throw "'gradle test' has failed" }
} elseif (test-path "$Path/Imakefile" -pathType leaf) { } elseif (test-path "$Path/Imakefile" -pathType leaf) {
" Building 📂$DirName using Imakefile..." "🔨 Building 📂$DirName using Imakefile..."
set-location "$RepoDir/" set-location "$RepoDir/"
& xmkmf & xmkmf
@ -66,14 +66,14 @@ function MakeDir { param($Path)
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$Path/Makefile" -pathType leaf) { } elseif (test-path "$Path/Makefile" -pathType leaf) {
" Building 📂$DirName using Makefile..." "🔨 Building 📂$DirName using Makefile..."
set-location "$Path" set-location "$Path"
& make -j4 & make -j4
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$Path/compile.sh" -pathType leaf) { } elseif (test-path "$Path/compile.sh" -pathType leaf) {
" Building 📂$DirName using 'compile.sh'..." "🔨 Building 📂$DirName using 'compile.sh'..."
set-location "$Path/" set-location "$Path/"
& ./compile.sh & ./compile.sh
@ -83,14 +83,14 @@ function MakeDir { param($Path)
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$Path/attower/src/build/DevBuild/build.bat" -pathType leaf) { } elseif (test-path "$Path/attower/src/build/DevBuild/build.bat" -pathType leaf) {
" Building 📂$DirName using build.bat ..." "🔨 Building 📂$DirName using build.bat ..."
set-location "$Path/attower/src/build/DevBuild/" set-location "$Path/attower/src/build/DevBuild/"
& ./build.bat build-all-release & ./build.bat build-all-release
if ($lastExitCode -ne "0") { throw "Script 'build.bat' exited with error code $lastExitCode" } if ($lastExitCode -ne "0") { throw "Script 'build.bat' exited with error code $lastExitCode" }
} elseif (test-path "$Path/$DirName" -pathType container) { } elseif (test-path "$Path/$DirName" -pathType container) {
" No make rule found, trying subfolder 📂$($DirName)..." "🔨 No make rule found, trying subfolder 📂$($DirName)..."
MakeDir "$Path/$DirName" MakeDir "$Path/$DirName"
} else { } else {
write-warning "Sorry, no make rule applies to: 📂$DirName" write-warning "Sorry, no make rule applies to: 📂$DirName"