Files
wekan/releases/mirror-github.sh
T
Lauri Ojansivu 675ca5d954 Add saved mirror menu, configurable sources and read-only checks
Default to GitHub as source and GitLab, Codeberg and SourceForge as mirrors. Share the six-action menu across Unix and Windows, save source and active destinations in .tools/mirror/settings.txt, and delegate synchronization to individual forge launchers. Support native source inventories and GitHub destinations, preserve original provenance and isolate source archives. Compare Git ancestry and inventory missing metadata without remote writes in check mode. Verify menu interaction, adapters, retries, settings validation and archive isolation with offline fixtures.

Thanks to xet7 !
2026-09-13 20:54:13 +03:00

10 lines
419 B
Bash
Executable File

#!/bin/bash
# Human-run: synchronize missing selected-source data to this active mirror.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
export PATH="$ROOT/.tools/bin:${GOBIN:+$GOBIN:}$PATH"
FLAGS=(--apply --code)
if [ "${1:-}" = --preview ]; then FLAGS=(--code); shift; fi
node "$ROOT/tools/mirror-active-forges.mjs" --target github "${FLAGS[@]}" "$@"