translate to english

This commit is contained in:
2026-08-01 17:25:00 +02:00
parent 2237b4a180
commit b448592a20
8 changed files with 117 additions and 116 deletions
+12 -12
View File
@@ -1,13 +1,13 @@
#!/usr/bin/env bash
#
# Összeveti a scripts/repos.list klón listát a Gitea szerver tartalmával
# Compare the scripts/repos.list clone list against the Gitea server
# (tea repo list --output json).
#
# - HIÁNYZIK: a szerveren létezik, de nincs a klón listában és a
# repos.ignore-ban sem
# - FELESLEG: a listában Gitea repóként szerepel, de a szerveren nincs
# - MISSING: exists on the server but is neither in the clone list
# nor in repos.ignore
# - STALE: listed as a Gitea repo but does not exist on the server
#
# Kilépési kód: 0, ha minden stimmel; 1, ha bármelyik listában van találat.
# Exit code: 0 if everything matches; 1 if either list has hits.
set -euo pipefail
@@ -17,17 +17,17 @@ IGNORE="$SCRIPT_DIR/repos.ignore"
GITEA_HOST="git.teletypegames.org"
command -v tea >/dev/null 2>&1 || {
echo "HIBA: nincs tea CLI. Futtasd: make tea" >&2
echo "ERROR: tea CLI not found. Run: make tea" >&2
exit 1
}
# Szerveren lévő repók: owner/name
# Repos on the server: owner/name
server=$(tea repo list --output json --limit 1000 | jq -r '.[] | .owner + "/" + .name' | sort)
# A klón listában szereplő Gitea repók: owner/name a clone URL-ből
# Gitea repos in the clone list: owner/name extracted from the clone URL
listed=$(sed -nE "s#^[^|#]+\|ssh://git@${GITEA_HOST}:[0-9]+/(.+)\$#\1#p" "$LIST" | sed 's/\.git$//' | sort)
# Szándékosan kihagyott repók
# Intentionally excluded repos
ignored=$(sed -e 's/#.*//' -e '/^[[:space:]]*$/d' "$IGNORE" 2>/dev/null | sort || true)
missing=$(comm -23 <(echo "$server") <(sort -u <(echo "$listed") <(echo "$ignored")))
@@ -36,19 +36,19 @@ stale=$(comm -13 <(echo "$server") <(echo "$listed"))
status=0
if [ -n "$missing" ]; then
echo "HIÁNYZIK a klón listából (a szerveren létezik):"
echo "MISSING from the clone list (exists on the server):"
echo "$missing" | sed 's/^/ - /'
status=1
fi
if [ -n "$stale" ]; then
echo "FELESLEG a klón listában (a szerveren nincs):"
echo "STALE in the clone list (not on the server):"
echo "$stale" | sed 's/^/ - /'
status=1
fi
if [ "$status" -eq 0 ]; then
echo "OK: a klón lista lefedi a szerver mind a(z) $(echo "$server" | wc -l | tr -d ' ') repóját ($(echo "$ignored" | grep -c . || true) szándékosan kihagyva)."
echo "OK: the clone list covers all $(echo "$server" | wc -l | tr -d ' ') repos on the server ($(echo "$ignored" | grep -c . || true) intentionally excluded)."
fi
exit "$status"
+11 -11
View File
@@ -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 ]
+7 -7
View File
@@ -1,31 +1,31 @@
#!/usr/bin/env bash
#
# A tea (Gitea CLI) telepítése, ha még nincs fent, és a login ellenőrzése.
# Install tea (the Gitea CLI) if it is not present, and verify the login.
set -euo pipefail
GITEA_URL="https://git.teletypegames.org"
if command -v tea >/dev/null 2>&1; then
echo "tea már telepítve: $(command -v tea) ($(tea --version | head -1))"
echo "tea already installed: $(command -v tea) ($(tea --version | head -1))"
else
if ! command -v brew >/dev/null 2>&1; then
echo "HIBA: nincs se tea, se Homebrew. Telepítsd kézzel:" >&2
echo "ERROR: neither tea nor Homebrew found. Install manually:" >&2
echo " https://gitea.com/gitea/tea/releases" >&2
exit 1
fi
echo "tea telepítése Homebrew-val..."
echo "Installing tea via Homebrew..."
brew install tea
fi
# Login ellenőrzés: enélkül a tea repo list nem működik.
# Login check: tea repo list does not work without it.
if tea login list --output json 2>/dev/null | grep -q '"name"'; then
echo "tea login OK:"
tea login list
else
echo
echo "Még nincs tea login beállítva. Hozz létre egyet:"
echo "No tea login configured yet. Create one:"
echo " tea login add --name ttg --url $GITEA_URL"
echo "(token generálás: $GITEA_URL/user/settings/applications)"
echo "(generate a token at: $GITEA_URL/user/settings/applications)"
exit 1
fi
+3 -3
View File
@@ -1,4 +1,4 @@
# Szerveren létező repók, amelyeket szándékosan NEM klónozunk.
# Formátum: <owner>/<name>, soronként egy. A check-repos.sh ezeket nem
# jelzi hiányzóként.
# Repos that exist on the server but are intentionally NOT cloned.
# Format: <owner>/<name>, one per line. check-repos.sh will not report
# these as missing.
mr.zero/nas-website
+7 -7
View File
@@ -1,11 +1,11 @@
# A TTG workspace repói: <workspace-relatív út>|<clone URL>
# A clone-repos.sh és a check-repos.sh közös adatfájlja.
# TTG workspace repos: <workspace-relative path>|<clone URL>
# Shared data file for clone-repos.sh and check-repos.sh.
#
# Nem klónozható (ezért nincs a listában):
# - demos/new-game-wireframe — lokális repo, nincs remote-ja
# - demos/escoria-demo-game-main — sima letöltött mappa, nem git repo
# - media/, archive egyéb tartalma — nem git repók
# Szándékosan kihagyott szerver-repók: lásd repos.ignore
# Not clonable (hence not listed):
# - demos/new-game-wireframe — local repo, has no remote
# - demos/escoria-demo-game-main — plain downloaded folder, not a git repo
# - media/, other archive content — not git repos
# Intentionally excluded server repos: see repos.ignore
devarea|ssh://git@git.teletypegames.org:2222/tools/devarea
teletypegames|git@github.com:rastasi/teletypegames.git