Debian Codegraph @

scripts/poe-tasks/gen-schema

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 # ensure consistent behaviour
4 src_dir="$(dirnamescip-shell system . . dirname. "$(realpathscip-shell system . . 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/nullscip-shell filesystem . . `/dev/null`.
10 cpscip-shell system . . 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 echoscip-shell system . . echo. New JSON schema saved to $schema_file