blob: eee4f12549e6ac7d001a8832e640882ab628a342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env bash
# ensure consistent behaviour
src_dir="$(dirname "$(realpath "$0")")"
source $src_dir/utils/_env.sh
schema_file="$gitroot/doc/_static/config.schema.json"
meson_setup_configure > /dev/null
cp $build_dir/python/knot_resolver/constants.py $gitroot/python/knot_resolver/constants.py
python -m knot_resolver.client schema > $schema_file
echo New JSON schema saved to $schema_file
|