summaryrefslogtreecommitdiffstats
path: root/scripts/poe-tasks/gen-constantspy
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2024-09-18 00:33:17 +0200
committerAleš Mrázek <ales.mrazek@nic.cz>2024-09-30 11:16:07 +0200
commit7c6871ce11b079aef2f3993a6d7cdd0b68415305 (patch)
tree9cb242854b26728584be0afc382d7ec86a61974b /scripts/poe-tasks/gen-constantspy
parentscripts/poe-tasks: _env.sh improvements and formatting (diff)
downloadknot-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-xscripts/poe-tasks/gen-constantspy14
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