1# The offline copy has what keeps the forge readable while it is down: the2# home page, owner pages, topics, insights, the design page, assets and3# fonts, and each repo's home with its README's images, its branch's file4# list, log, commits, reviews, releases with their downloads, refs, sites,5# feed and search indexes.6. "$(dirname "$0")/../lib.sh"7user dami8repo dami/greet9clone dami dami/greet "$T/w/d"10mkdir -p "$T/w/d/img"11printf 'PNG1' >"$T/w/d/img/pic.png"12printf '# greet\n\n\n' >"$T/w/d/README.md"13at "$T/w/d" git add -A14at "$T/w/d" git commit -qm first15at "$T/w/d" git tag v116ok push_as dami "$T/w/d" origin main v117mkdir "$T/f"18printf 'greet\n' >"$T/f/greet"19FORGE_USER=dami ok at "$T/w/d" "$FORGE" release publish v1 "$T/f/greet"20build21fake_rclone22ok forge mirror23sha=$(git -C "$T/w/d" rev-parse HEAD)24for f in index.html repos.json dami/index.html topics/index.html insights/index.html design/index.html \25 dami/greet/index.html dami/greet/raw/main/img/pic.png dami/greet/tree/main/index.html dami/greet/files/main.txt \26 dami/greet/log/main/index.html "dami/greet/commit/$sha/index.html" dami/greet/reviews/index.html \27 dami/greet/releases/index.html dami/greet/releases/download/v1/greet dami/greet/refs/index.html \28 dami/greet/sites/index.html dami/greet/atom.xml dami/greet/search.json dami/greet/code.db; do29 exists "$T/bucket/$f"30done31ls "$T/bucket/assets/" | grep -q '^style\..*\.css$' || fail "no stylesheet in the bucket"32ls "$T/bucket/assets/" | grep -q '\.woff2$' || fail "no fonts in the bucket"