diff options
author | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-09-18 00:33:17 +0200 |
---|---|---|
committer | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-09-30 11:16:07 +0200 |
commit | 7c6871ce11b079aef2f3993a6d7cdd0b68415305 (patch) | |
tree | 9cb242854b26728584be0afc382d7ec86a61974b /scripts/poe-tasks/gen-constantspy | |
parent | scripts/poe-tasks: _env.sh improvements and formatting (diff) | |
download | knot-resolver-7c6871ce11b079aef2f3993a6d7cdd0b68415305.tar.xz knot-resolver-7c6871ce11b079aef2f3993a6d7cdd0b68415305.zip |
scripts/poe-tasks: created gen-constantspy script
New script to build constants.py module using Meson. Also check that the module is the current one.
Diffstat (limited to 'scripts/poe-tasks/gen-constantspy')
-rwxr-xr-x | scripts/poe-tasks/gen-constantspy | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/poe-tasks/gen-constantspy b/scripts/poe-tasks/gen-constantspy new file mode 100755 index 00000000..f71f1577 --- /dev/null +++ b/scripts/poe-tasks/gen-constantspy @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# ensure consistent behaviour +src_dir="$(dirname "$(realpath "$0")")" +source $src_dir/utils/_env.sh + +echo +meson_setup_configure +echo +echo ----------------------------------------------- +echo Copying constants.py module configured by Meson +echo ----------------------------------------------- +cp -v $build_dir/python/constants.py $gitroot/python/knot_resolver/constants.py +echo
\ No newline at end of file |