Add unicode character

This commit is contained in:
Markus Fleschutz 2021-04-17 11:23:41 +02:00
parent a67bff3cc8
commit 9e1c96d46f
8 changed files with 24 additions and 24 deletions

View File

@ -12,7 +12,7 @@ try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
if (test-path "$RepoDir/CMakeLists.txt") {
"Building $RepoDir using CMakeLists.txt..."
"Building $RepoDir using CMakeLists.txt..."
if (-not(test-path "$RepoDir/CMakeBuild")) {
& mkdir "$RepoDir/CMakeBuild/"
}
@ -25,7 +25,7 @@ try {
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$RepoDir/configure") {
"Building $RepoDir using 'configure'..."
"Building $RepoDir using 'configure'..."
set-location "$RepoDir/"
& ./configure
@ -35,7 +35,7 @@ try {
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$RepoDir/autogen.sh") {
"Building $RepoDir using 'autogen.sh'..."
"Building $RepoDir using 'autogen.sh'..."
set-location "$RepoDir/"
& ./autogen.sh
@ -45,7 +45,7 @@ try {
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$RepoDir/Imakefile") {
"Building $RepoDir using Imakefile..."
"Building $RepoDir using Imakefile..."
set-location "$RepoDir/"
& xmkmf
@ -55,25 +55,25 @@ try {
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$RepoDir/Makefile") {
"Building $RepoDir using Makefile..."
"Building $RepoDir using Makefile..."
set-location "$RepoDir/"
& make -j4
if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" }
} elseif (test-path "$RepoDir/attower/src/build/DevBuild/build.bat") {
"Building $RepoDir using build.bat..."
"Building $RepoDir using build.bat..."
set-location "$RepoDir/attower/src/build/DevBuild/"
& ./build.bat build-all-release
if ($lastExitCode -ne "0") { throw "Script 'build.bat' returned error(s)" }
} else {
write-warning "Sorry, no clue how to build $RepoDir"
write-warning "Sorry, no rule found to build $RepoDir"
exit 0
}
write-host -foregroundColor green "✔️ built Git repository $RepoDir in $($StopWatch.Elapsed.Seconds) second(s)"
write-host -foregroundColor green "✔️ Git repository $RepoDir built in $($StopWatch.Elapsed.Seconds) second(s)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -9,7 +9,7 @@
param($ParentDir = "$PWD")
try {
"Building Git repositories at $($ParentDir)..."
"Building Git repositories at $($ParentDir)..."
$StopWatch = [system.diagnostics.stopwatch]::startNew()
if (-not(test-path "$ParentDir" -pathType container)) { throw "Can't access directory: $ParentDir" }
@ -21,7 +21,7 @@ try {
$Count++
}
write-host -foregroundColor green "✔️ built $Count Git repositories at $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)"
write-host -foregroundColor green "✔️ $Count Git repositories built at $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,7 +1,7 @@
#!/usr/bin/pwsh
#!/usr/bin/pwsh
<#
.SYNTAX clean-repo.ps1 [<repo-dir>]
.DESCRIPTION cleans the current/given Git repository from untracked files (including submodules, e.g. for a fresh build)
.DESCRIPTION cleans a Git repository from untracked files (including submodules, e.g. for a fresh build)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
@ -9,12 +9,12 @@
param($RepoDir = "$PWD")
try {
"Cleaning Git repository $RepoDir from untracked files ..."
"Cleaning Git repository $RepoDir from untracked files..."
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
set-location "$RepoDir"
& git --version
$Null = (git --version)
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
& git clean -fdx # force + recurse into dirs + don't use the standard ignore rules
@ -23,7 +23,7 @@ try {
& git submodule foreach --recursive git clean -fdx
if ($lastExitCode -ne "0") { throw "'git clean -fdx' in submodules failed" }
write-host -foregroundColor green "OK - cleaned Git repository $RepoDir from untracked files"
write-host -foregroundColor green "✔️ Git repository $RepoDir is clean"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,4 +1,4 @@
#!/usr/bin/pwsh
#!/usr/bin/pwsh
<#
.SYNTAX clone-repos.ps1 [<target-dir>]
.DESCRIPTION clones well-known Git repositories into the current/given directory.
@ -28,7 +28,7 @@ try {
write-output "Skipping existing $Directory ..."
continue
}
write-output "Cloning from $URL..."
write-output "Cloning from $URL..."
& git clone --recurse-submodules $URL
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
}

View File

@ -9,7 +9,7 @@
param($RepoDir = "$PWD")
try {
"📥 Fetching updates for Git repository $($RepoDir)..."
" Fetching updates for Git repository $($RepoDir)..."
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
set-location "$RepoDir"

View File

@ -28,7 +28,7 @@ try {
$Count++
}
write-host -foregroundColor green "✔️ updates fetched for $Count Git repositories under $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)"
write-host -foregroundColor green "✔️ Updates fetched for $Count Git repositories under $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -9,7 +9,7 @@
param($RepoDir = "$PWD")
try {
"→ Pulling updates for Git repository $RepoDir ..."
"⏳ Pulling updates for Git repository $($RepoDir)..."
if (-not(test-path "$RepoDir" -pathType container)) { throw "Can't access directory: $RepoDir" }
set-location "$RepoDir"
@ -20,7 +20,7 @@ try {
& git status
if ($lastExitCode -ne "0") { throw "'git status' failed" }
write-host -foregroundColor green "✔️ updates pulled for Git repository $RepoDir"
write-host -foregroundColor green "✔️ Updates pulled for Git repository $RepoDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -1,4 +1,4 @@
#!/usr/bin/pwsh
#!/usr/bin/pwsh
<#
.SYNTAX pull-repos.ps1 [<parent-dir>]
.DESCRIPTION pulls updates for all Git repositories under the current/given directory (including submodules)
@ -19,7 +19,7 @@ try {
[int]$Count = 0
get-childItem $ParentDir -attributes Directory | foreach-object {
"Pulling updates for Git repository $($_.FullName)..."
"Pulling updates for Git repository $($_.FullName)..."
set-location $_.FullName
@ -30,7 +30,7 @@ try {
$Count++
}
write-host -foregroundColor green "✔️ pulled updates for $Count Git repositories under $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)"
write-host -foregroundColor green "✔️ Updates pulled for $Count Git repositories under $ParentDir in $($StopWatch.Elapsed.Seconds) second(s)"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"