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.
This commit is contained in:
Eric-Paul Ickhorn 2024-09-08 15:56:15 +02:00
parent 2037f9af8f
commit 9c691f817f
Signed by: epickh
GPG Key ID: 1358818BAA38B104
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ 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