aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2023-09-01 13:54:04 +0200
committerWojtek Kosior <koszko@koszko.org>2023-09-01 13:54:04 +0200
commit7b0f84dab277eb079ea8ad6d1b33557a414b48d7 (patch)
treefe279a0a52426e6c75e83ba0003d7eb387f9c076
parenteea14360656ac837a3b38eaa364f450fa22de9e0 (diff)
downloadkoszko-org-server-7b0f84dab277eb079ea8ad6d1b33557a414b48d7.tar.gz
koszko-org-server-7b0f84dab277eb079ea8ad6d1b33557a414b48d7.zip
Compute test root path once
It looked ugly and confusing when sed command was being embedded everywhere.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 815a251..cbd2f49 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,8 @@ ALL_EGG_INFOS = \
CONTAINER_PREREQUISITES = container.scm $(ALL_EGG_INFOS) hydrilla-wsgi.py \
exim.conf Makefile.local
-TEST_ROOT_DIR = "/tmp/$$(pwd | sed 's|/|!|g')"'!!test-root/current'
+PWD_DERIVED_DIRECTORY_NAME != pwd | sed 's|[/'\'']|!|g'
+TEST_ROOT_DIR = '/tmp/$(PWD_DERIVED_DIRECTORY_NAME)!!test-root/current'
all: | container-runner.touchfile log sample-malcontent