#!/bin/bash
set -Eeuo pipefail

# First generates Rust code, bash completion, part of hurl.md and hurlfmt.md
python3 bin/spec/options/generate_all.py

# Regenerates manual, READMEs etc..
python3 bin/docs/build_man.py docs/manual/hurl.md > docs/manual/hurl.1
python3 bin/docs/build_man.py docs/manual/hurlfmt.md > docs/manual/hurlfmt.1
python3 bin/docs/build_man_md.py docs/manual/hurl.md > docs/manual.md
python3 bin/docs/build_readme.py github > README.md
python3 bin/docs/build_readme.py crates > packages/hurl/README.md
