mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
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 !
10 lines
419 B
Bash
Executable File
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[@]}" "$@"
|