From 9c691f817f5af7d3e21f49e2b387e9b22e089e2d Mon Sep 17 00:00:00 2001 From: Eric-Paul Ickhorn Date: Sun, 8 Sep 2024 15:56:15 +0200 Subject: [PATCH] Fix bug with wrong module includes The include statements generated from the 'includes.txt' have'nt been correct because of a prefixed string 'modules/' infront of the project path. The local includes were also not working because the 'modules/' path element was missing between the project path and the module name. --- scripts/build.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.bash b/scripts/build.bash index a795f20..2a9b5e6 100644 --- a/scripts/build.bash +++ b/scripts/build.bash @@ -42,10 +42,10 @@ function make_include_statements() { for INCLUDE_PATH in $(cat modules/$MODULE_NAME/includes.txt) do - MODIFIED_PATH="${INCLUDE_PATH//"{self}"/"modules/$PROJECT_PATH/$MODULE_NAME"}" + MODIFIED_PATH="${INCLUDE_PATH//"{self}"/"$PROJECT_PATH/modules/$MODULE_NAME"}" MODIFIED_PATH="${MODIFIED_PATH//"{module-folder}"/"$PROJECT_PATH/modules"}" echo "-I ${MODIFIED_PATH//"{dependencies}"/"$PROJECT_PATH/dependencies"}" - done + done } function build_single_module() {