Update clone-repos.ps1

This commit is contained in:
Markus Fleschutz 2022-07-29 15:21:39 +02:00
parent 3e440b26b6
commit f61d832ffa
2 changed files with 29 additions and 29 deletions

View File

@ -1,27 +1,27 @@
Category,FolderName, Branch, Full, URL
Dev, base256unicode, main, no, "git@github.com:fleschutz/base256unicode.git"
Dev, bazel, master, no, "https://github.com/bazelbuild/bazel"
Dev, cmake, master, no, "https://github.com/Kitware/CMake"
Fun, cmatrix, master, no, "https://github.com/abishekvashok/cmatrix"
Tool, cmark, master, no, "https://github.com/commonmark/cmark"
Dev, CWTS, master, no, "git@github.com:fleschutz/CWTS.git"
Tool, elasticsearch, master, no, "https://github.com/elastic/elasticsearch"
Tool, go-ipfs, master, no, "https://github.com/ipfs/go-ipfs"
Tool, grafana, main, no, "https://github.com/grafana/grafana"
Tool, leon, master, no, "https://github.com/leon-ai/leon"
Dev, llvm, master, no, "https://github.com/llvm/llvm-project"
Math, LSS, master, no, "git@github.com:fleschutz/LSS.git"
Dev, ninja, master, no, "git@github.com:ninja-build/ninja.git"
Libs, opencv, master, no, "https://github.com/opencv/opencv"
Tool, operating-systems, main, no, "git@github.com:fleschutz/operating-systems.git"
Shell, PowerShell, master, no, "git@github.com:fleschutz/PowerShell.git"
Shell, pwsh, master, no, "https://github.com/PowerShell/PowerShell"
Dev, base256unicode, main, no, "git@github.com:fleschutz/base256unicode"
Dev, bazel, master, no, "git@github.com:bazelbuild/bazel"
Dev, cmake, master, no, "git@github.com:Kitware/CMake"
Fun, cmatrix, master, no, "git@github.com:abishekvashok/cmatrix"
Tool, cmark, master, no, "git@github.com:commonmark/cmark"
Dev, CWTS, master, no, "git@github.com:fleschutz/CWTS"
Tool, elasticsearch, main, no, "git@github.com:elastic/elasticsearch"
Tool, go-ipfs, master, no, "git@github.com:ipfs/go-ipfs"
Tool, grafana, main, no, "git@github.com:grafana/grafana"
Tool, leon, master, no, "git@github.com:leon-ai/leon"
Dev, llvm, master, no, "git@github.com:llvm/llvm-project"
Math, LSS, master, no, "git@github.com:fleschutz/LSS"
Dev, ninja, master, no, "git@github.com:ninja-build/ninja"
Libs, opencv, master, no, "git@github.com:opencv/opencv"
Tool, operating-systems, main, no, "git@github.com:fleschutz/operating-systems"
Shell, PowerShell, master, no, "git@github.com:fleschutz/PowerShell"
Shell, pwsh, master, no, "git@github.com:PowerShell/PowerShell"
Dev, protobuf, main, no, "git@github.com:protocolbuffers/protobuf"
Dev, rust, master, no, "https://github.com/rust-lang/rust"
Tool, smartmontools, master, no, "https://github.com/smartmontools/smartmontools"
Dev, rust, master, no, "git@github.com:rust-lang/rust"
Tool, smartmontools, master, no, "git@github.com:smartmontools/smartmontools"
Tool, talk2windows, main, no, "git@github.com:fleschutz/talk2windows.git"
Tool, tensorflow, master, no, "https://github.com/tensorflow/tensorflow"
Tool, terminal, main, no, "https://github.com/microsoft/terminal"
Dev, tinycc, mob, no, "https://github.com/TinyCC/tinycc"
Tool, voice2json, master, no, "https://github.com/synesthesiam/voice2json"
Tool, zfs, master, no, "https://github.com/openzfs/zfs"
Tool, tensorflow, master, no, "git@github.com:tensorflow/tensorflow"
Tool, terminal, main, no, "git@github.com:microsoft/terminal"
Dev, tinycc, mob, no, "git@github.com:TinyCC/tinycc"
Tool, voice2json, master, no, "git@github.com:synesthesiam/voice2json"
Tool, zfs, master, no, "git@github.com:openzfs/zfs"
Can't render this file because it has a wrong number of fields in line 2.

View File

@ -27,7 +27,7 @@ try {
$Table = import-csv "$PSScriptRoot/../Data/git-repos.csv"
$NumEntries = $Table.count
"Found $NumEntries entries in database table Data/git-repos.csv."
"Found $NumEntries entries in Data/git-repos.csv."
[int]$Step = 0
[int]$Cloned = 0
@ -40,16 +40,16 @@ try {
$Step++
if (test-path "$FolderPath/$FolderName" -pathType container) {
"⏳ Step $Step/$($NumEntries): Skipping 📂$($FolderName) (exists already)..."
"⏳ Step $Step/$($NumEntries) - Skipping 📂$($FolderName) (exists already)..."
$Skipped++
continue
}
if ($Full -eq "yes") {
"⏳ Step $Step/$($NumEntries): Cloning 📂$($FolderName) ($Branch branch with full history)..."
"⏳ Step $Step/$($NumEntries) - Cloning into 📂$($FolderName) ($Branch branch with full history)..."
& git clone --branch "$Branch" --recurse-submodules "$URL" "$FolderPath/$FolderName"
if ($lastExitCode -ne "0") { throw "'git clone --branch $Branch $URL' failed with exit code $lastExitCode" }
} else {
"⏳ Step $Step/$($NumEntries): Cloning 📂$FolderName ($Branch branch only)..."
"⏳ Step $Step/$($NumEntries) - Cloning into 📂$FolderName ($Branch branch only)..."
& git clone --branch "$Branch" --single-branch --recurse-submodules "$URL" "$FolderPath/$FolderName"
if ($lastExitCode -ne "0") { throw "'git clone --branch $Branch $URL' failed with exit code $lastExitCode" }
}
@ -65,4 +65,4 @@ try {
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}