diff options
author | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-08-27 15:26:58 +0200 |
---|---|---|
committer | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-09-07 00:28:31 +0200 |
commit | 664c31349063f5f782c41a3713c866fcc9c39715 (patch) | |
tree | 34a4f82783ed01073601e11b80389910dc67fffd /scripts/poe-tasks | |
parent | python: knot_resolver_build_options module added (diff) | |
download | knot-resolver-664c31349063f5f782c41a3713c866fcc9c39715.tar.xz knot-resolver-664c31349063f5f782c41a3713c866fcc9c39715.zip |
scripts/poe-tasks: clean added
Diffstat (limited to 'scripts/poe-tasks')
-rwxr-xr-x | scripts/poe-tasks/clean | 20 |
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 {} + |