summaryrefslogtreecommitdiffstats
path: root/scripts/poe-tasks/gen-constantspy
diff options
context:
space:
mode:
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