summaryrefslogtreecommitdiffstats
path: root/scripts/poe-tasks
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2024-09-19 15:43:30 +0200
committerAleš Mrázek <ales.mrazek@nic.cz>2024-09-30 11:16:07 +0200
commit9f70c6e5ffa3ec8a5354d101fa05353f739c23db (patch)
tree4551036541f056268631585598cd1338f61cd347 /scripts/poe-tasks
parentscripts/poe-tasks: created gen-constantspy script (diff)
downloadknot-resolver-9f70c6e5ffa3ec8a5354d101fa05353f739c23db.tar.xz
knot-resolver-9f70c6e5ffa3ec8a5354d101fa05353f739c23db.zip
python: meson constants.py template moved to knot_resolver module
Diffstat (limited to 'scripts/poe-tasks')
-rwxr-xr-xscripts/poe-tasks/check2
-rwxr-xr-xscripts/poe-tasks/configure2
-rwxr-xr-xscripts/poe-tasks/doc-schema2
-rwxr-xr-xscripts/poe-tasks/gen-constantspy2
4 files changed, 4 insertions, 4 deletions
diff --git a/scripts/poe-tasks/check b/scripts/poe-tasks/check
index 7acd65b7..8cae7fdc 100755
--- a/scripts/poe-tasks/check
+++ b/scripts/poe-tasks/check
@@ -71,7 +71,7 @@ echo
# check python/knot_resolver/constants.py
echo -e "${yellow}python/knot_resolver/constants.py${reset}"
meson_setup_configure > /dev/null
-diff python/knot_resolver/constants.py $build_dir/python/constants.py
+diff python/knot_resolver/constants.py $build_dir/python/knot_resolver/constants.py
check_rv $?
echo
diff --git a/scripts/poe-tasks/configure b/scripts/poe-tasks/configure
index 8e4fff06..dc4aa074 100755
--- a/scripts/poe-tasks/configure
+++ b/scripts/poe-tasks/configure
@@ -10,5 +10,5 @@ echo
echo -----------------------------------------------
echo Copying constants.py module configured by Meson
echo -----------------------------------------------
-cp -v $build_dev_dir/python/constants.py $gitroot/python/knot_resolver/constants.py
+cp -v $build_dev_dir/python/knot_resolver/constants.py $gitroot/python/knot_resolver/constants.py
echo
diff --git a/scripts/poe-tasks/doc-schema b/scripts/poe-tasks/doc-schema
index ff7dea46..33ea3bd6 100755
--- a/scripts/poe-tasks/doc-schema
+++ b/scripts/poe-tasks/doc-schema
@@ -7,7 +7,7 @@ source $src_dir/utils/_env.sh
schema_file="$gitroot/doc/_static/config.schema.json"
meson_setup_configure > /dev/null
-cp $build_dir/python/constants.py $gitroot/python/knot_resolver/constants.py
+cp $build_dir/python/knot_resolver/constants.py $gitroot/python/knot_resolver/constants.py
python -m knot_resolver.client schema > $schema_file
echo New configuration JSON schem saved to $schema_file \ No newline at end of file
diff --git a/scripts/poe-tasks/gen-constantspy b/scripts/poe-tasks/gen-constantspy
index f71f1577..0f3bb3b6 100755
--- a/scripts/poe-tasks/gen-constantspy
+++ b/scripts/poe-tasks/gen-constantspy
@@ -10,5 +10,5 @@ echo
echo -----------------------------------------------
echo Copying constants.py module configured by Meson
echo -----------------------------------------------
-cp -v $build_dir/python/constants.py $gitroot/python/knot_resolver/constants.py
+cp -v $build_dir/python/knot_resolver/constants.py $gitroot/python/knot_resolver/constants.py
echo \ No newline at end of file