#!/bin/bash
set -eu
rm -rf target
mkdir target
cp -r source/* target/
{
cat <
target/index.gmi
uv --project .. run coppewebite-to-rss target/index.rss --title Example --subtitle Subtitle --base-url https://www.example.com target/
find target -name '*.gmi' -exec sh -c 'uv --project .. run coppewebite-to-html <{} >$(echo {} | sed s/.gmi/.html/)' ';'