#!/bin/bash
# Builds the page fragment consumed by the review app:
# all four cover options followed by pages 02 to 28.
set -e
cd "$(dirname "$0")"
OUT="review/pages.html"
: > "$OUT"
for c in a b c d; do
  echo "<!-- cover $c -->" >> "$OUT"
  cat "covers/cover-$c.html" >> "$OUT"
done
cat src/p*.html >> "$OUT"
echo "→ $OUT  ($(grep -c '<section class="page' "$OUT") pages)"
