]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
poe: fix out-of-repo workspaces + ignores
authorOto Šťáva <oto.stava@nic.cz>
Tue, 27 Aug 2024 12:41:52 +0000 (14:41 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 27 Aug 2024 12:41:52 +0000 (14:41 +0200)
.gitignore
poe

index cccbf64d986d1f55d9a76b0f8cdc4f371d54bc9f..fba277042a42aacbd2a3466f2b012c8b99c2828b 100644 (file)
@@ -28,6 +28,7 @@
 /ar-lib
 /autom4te.cache/*
 /bench/bench_lru
+/build*/
 /compile
 /compile_commands.json
 /config.guess
@@ -83,13 +84,10 @@ kresd.amalg.c
 libkres.amalg.c
 luacov.*.out
 **/__pycache__/
-build/
 dist/
 .coverage
 .mypy_cache
 .install_kresd/
 .build_kresd/
-build_dist
-build_doc
 poetry.lock
 *.junit.xml
diff --git a/poe b/poe
index 74647def43640c808cc20d015ab3731a54f7e78a..d1f58894cd8620dffb1e7231fe708572b24e4366 100755 (executable)
--- a/poe
+++ b/poe
@@ -1,3 +1,4 @@
 #!/bin/sh
 
-exec poetry run poe "$@"
+script_dir="$(dirname "$(readlink -f "$0")")"
+exec poetry --directory "$script_dir" run poe --root "$script_dir" "$@"