Debian Codegraph @

scripts/poe-tasks/gen-schema

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