mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-15 15:22:44 +02:00
Improve the scripts
This commit is contained in:
@ -22,10 +22,10 @@ try {
|
||||
$URL = $Row.URL
|
||||
$DirName = $Row.Directory
|
||||
if (test-path "$ParentDir/$DirName" -pathType container) {
|
||||
"Skipping 📂$DirName because it exists already ..."
|
||||
"Skipping 📂$DirName (exists already)..."
|
||||
continue
|
||||
}
|
||||
"⏳ Cloning $URL to 📂$DirName ..."
|
||||
"⏳ Cloning $URL to 📂$($DirName)..."
|
||||
& git clone --recurse-submodules "$URL" "$ParentDir/$DirName"
|
||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||
$Count++
|
||||
|
@ -1,6 +1,6 @@
|
||||
<#
|
||||
.SYNTAX build-repo.ps1 [<repo-dir>]
|
||||
.DESCRIPTION builds a Git repository (supporting cmake,configure,autogen,Imakefile,Makefile)
|
||||
.SYNTAX make-repo.ps1 [<repo-dir>]
|
||||
.DESCRIPTION builds a Git repository supporting cmake,configure,autogen,Imakefile,Makefile
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
@ -1,5 +1,5 @@
|
||||
<#
|
||||
.SYNTAX build-repos.ps1 [<parent-dir>]
|
||||
.SYNTAX make-repos.ps1 [<parent-dir>]
|
||||
.DESCRIPTION builds all Git repositories under the current/given directory
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
@ -17,7 +17,7 @@ try {
|
||||
"Building $($Folders.Count) Git repositories at 📂$ParentDirName..."
|
||||
|
||||
foreach ($Folder in $Folders) {
|
||||
& "$PSScriptRoot/build-repo.ps1" "$Folder"
|
||||
& "$PSScriptRoot/make-repo.ps1" "$Folder"
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
Reference in New Issue
Block a user