1# A private repo's build ships its assets into the public www/assets too,2# so it must carry over every bundle the public pages link: here the3# reviews page of a public repo, whose CSS bundle no private page renders.4# Each page's stylesheets must exist after every kind of build.5. "$(dirname "$0")/../lib.sh"6user dami7repo dami/pub8repo --private dami/sec9clone dami dami/pub "$T/w/p"10at "$T/w/p" commit "first"11push_as dami "$T/w/p" origin main12at "$T/w/p" git switch -q -c dami/x13at "$T/w/p" commit "x"14push_as dami "$T/w/p" origin dami/x15clone dami dami/sec "$T/w/s"16at "$T/w/s" commit "first"17push_as dami "$T/w/s" origin main18# Every stylesheet the public pages link is in www/assets.19styles() {20 for f in $(grep -rhoE 'href="/assets/[^"]+\.css"' "$FORGE_WWW/dami/pub" "$FORGE_WWW/index.html" | sed 's/href="\/assets\///; s/"//' | sort -u); do21 [ -f "$FORGE_WWW/assets/$f" ] || fail "$1: a public page links /assets/$f, which isn't there"22 done23}24build dami/pub25styles "after the public build"26build dami/sec27styles "after a private build"28build29styles "after a full build"30build dami/sec31styles "after another private build"