summaryrefslogtreecommitdiffstats
path: root/scripts/poe-tasks
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2024-08-27 15:26:58 +0200
committerAleš Mrázek <ales.mrazek@nic.cz>2024-09-07 00:28:31 +0200
commit664c31349063f5f782c41a3713c866fcc9c39715 (patch)
tree34a4f82783ed01073601e11b80389910dc67fffd /scripts/poe-tasks
parentpython: knot_resolver_build_options module added (diff)
downloadknot-resolver-664c31349063f5f782c41a3713c866fcc9c39715.tar.xz
knot-resolver-664c31349063f5f782c41a3713c866fcc9c39715.zip
scripts/poe-tasks: clean added
Diffstat (limited to 'scripts/poe-tasks')
-rwxr-xr-xscripts/poe-tasks/clean20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/poe-tasks/clean b/scripts/poe-tasks/clean
new file mode 100755
index 00000000..ff69ad69
--- /dev/null
+++ b/scripts/poe-tasks/clean
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+# ensure consistent behaviour
+src_dir="$(dirname "$(realpath "$0")")"
+source $src_dir/utils/_env.sh
+
+echo
+echo Removing mypy, pytest and other cached files
+echo --------------------------------------------
+rm -vrf .coverage .mypy_cache .pytest_cache
+
+echo
+echo Removing meson build directories and files
+echo ------------------------------------------
+rm -vrf .build_kresd .install_kresd build build_doc dist
+
+echo
+echo Removing __pycache__ directories and files
+echo ------------------------------------------
+find . -type d -name '__pycache__' -prune -exec rm -vrf {} +