translate to english
This commit is contained in:
+11
-11
@@ -1,14 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# A TTG workspace repóinak leklónozása a kategória-mappás struktúrába
|
||||
# a scripts/repos.list alapján.
|
||||
# Clone the TTG workspace repos into the category-folder structure,
|
||||
# based on scripts/repos.list.
|
||||
#
|
||||
# Használat:
|
||||
# ./clone-repos.sh [cél-mappa]
|
||||
# Usage:
|
||||
# ./clone-repos.sh [target-dir]
|
||||
#
|
||||
# Cél-mappa nélkül a devarea checkout szülőkönyvtárába (a workspace
|
||||
# gyökerébe) klónoz. A már létező mappákat kihagyja, így ismételten
|
||||
# futtatható.
|
||||
# Without a target dir it clones into the parent directory of the devarea
|
||||
# checkout (the workspace root). Existing directories are skipped, so the
|
||||
# script can be re-run safely.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@@ -21,13 +21,13 @@ skipped=0
|
||||
failed=0
|
||||
|
||||
while IFS='|' read -r path url; do
|
||||
# kommentek és üres sorok
|
||||
# comments and empty lines
|
||||
[[ -z "$path" || "$path" == \#* ]] && continue
|
||||
|
||||
target="$ROOT/$path"
|
||||
|
||||
if [ -e "$target/.git" ]; then
|
||||
echo "skip $path (már létezik)"
|
||||
echo "skip $path (already exists)"
|
||||
skipped=$((skipped + 1))
|
||||
continue
|
||||
fi
|
||||
@@ -36,11 +36,11 @@ while IFS='|' read -r path url; do
|
||||
if git clone "$url" "$target"; then
|
||||
cloned=$((cloned + 1))
|
||||
else
|
||||
echo "HIBA $path ($url)" >&2
|
||||
echo "ERROR $path ($url)" >&2
|
||||
failed=$((failed + 1))
|
||||
fi
|
||||
done < "$LIST"
|
||||
|
||||
echo
|
||||
echo "Kész: $cloned klónozva, $skipped kihagyva, $failed hiba."
|
||||
echo "Done: $cloned cloned, $skipped skipped, $failed failed."
|
||||
[ "$failed" -eq 0 ]
|
||||
|
||||
Reference in New Issue
Block a user