#!/usr/bin/env bash
# Usage: scripts/html.sh rfcs/p1
# SPDX-FileCopyrightText: 2023 Julien Moutinho (adh14) <julm+rezine@autogeree.net>
# SPDX-License-Identifier: AGPL-3.0-or-later
set -eu
. "${0%/*}"/lib.sh
set -x

for rfcDir in "$@"; do
  rfcDirMetadata
  rfcRevision
  rfcHTML -o "$rfcDir"/index.html
done