Some checks are pending
offline / test (push) Waiting to run
zapier-docs-master now has CATALOG-HOST.md (relative PDFs / rewrite-docs-host.py) and HOST-DEPS.md. verae-bootstrap/scripts/host-deps.sh checks and installs git, Node, native build tools, and nats-server on Debian or Alpine from host-deps.tsv (every Forgejo module). fetch.sh runs it before clone/npm.
18 lines
548 B
Bash
Executable file
18 lines
548 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
TYPE="${1:-}"
|
|
LIST="$ROOT/repos.txt"
|
|
if [[ -n "$TYPE" ]]; then
|
|
LIST="$ROOT/types/$TYPE/repos.txt"
|
|
[[ -f "$LIST" ]] || { echo "unknown type $TYPE" >&2; exit 1; }
|
|
fi
|
|
# OS packages + Node (+ nats-server for archive types) before clone.
|
|
if [[ -n "$TYPE" ]]; then
|
|
bash "$ROOT/scripts/host-deps.sh" --type "$TYPE"
|
|
else
|
|
bash "$ROOT/scripts/host-deps.sh"
|
|
fi
|
|
bash "$ROOT/scripts/clone.sh" "$LIST"
|
|
bash "$ROOT/scripts/install-deps.sh"
|
|
echo "fetch done type=${TYPE:-all}"
|