blob: 557477e87704ebc5644faecc8d0c5322b7775843 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env bash
# Written by GPT after discussions on how to de-glitch rsync-s to st33v.com
# 31 Jan 2026
set -euo pipefail
ROOT_BUILD="$HOME/dox/st33v.com/faircamp/.faircamp_build/"
SOTD_BUILD="$HOME/dox/st33v.com/sotd/.faircamp_build/"
STAGE="$HOME/dox/st33v.com/stage"
REMOTE="st33v@st33v.com:/srv/www/st33v.com/"
# rm -rf "$STAGE"
# mkdir -p "$STAGE/sotd"
# materialize staging tree (real files)
rsync -a --delete "$ROOT_BUILD" "$STAGE/"
rsync -a --delete "$SOTD_BUILD" "$STAGE/sotd/"
# generate robots/sitemap in the staged output
gen-robots-sitemap.sh "$STAGE" "https://st33v.com"
# publish atomically
rsync -anv --delete "$STAGE/"/ "$REMOTE"
|