From 6e95cb0186ef1abe8af9fd2e2e51c6c789583e25 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Fri, 10 Mar 2023 05:06:20 +0200
Subject: [PATCH 30/30] rulesets_autohelp.sh: Make work regardless of working
 directory

See osdn #46477

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 tests/rulesets_autohelp.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/rulesets_autohelp.sh.in b/tests/rulesets_autohelp.sh.in
index 2ad63f9375..021d29c4af 100644
--- a/tests/rulesets_autohelp.sh.in
+++ b/tests/rulesets_autohelp.sh.in
@@ -22,7 +22,7 @@ fi
 if test "$FREECIV_DATA_PATH" = "" ; then
   FREECIV_DATA_PATH=".@HOST_PATH_SEPARATOR@data"
 fi
-FREECIV_DATA_PATH="${FREECIV_DATA_PATH}@HOST_PATH_SEPARATOR@@top_builddir@@HOST_DIR_SEPARATOR@data@HOST_PATH_SEPARATOR@@top_srcdir@@HOST_DIR_SEPARATOR@data"
+FREECIV_DATA_PATH="${FREECIV_DATA_PATH}@HOST_PATH_SEPARATOR@@abs_top_builddir@@HOST_DIR_SEPARATOR@data@HOST_PATH_SEPARATOR@@abs_top_srcdir@@HOST_DIR_SEPARATOR@data"
 export FREECIV_DATA_PATH
 
 for ruleset in $rulesets; do
-- 
2.39.2