Added -p for generated sources dirs as they are created in lopp

This commit is contained in:
Jiri 2023-12-14 15:37:30 +01:00
parent bade6a4d92
commit 2e9bc90b6c
1 changed files with 3 additions and 3 deletions

View File

@ -1301,13 +1301,13 @@ function findGeneratedSources() {
local sourcesName=$(basename ${sources})
local sourcesParent=$(dirname ${sources})
local target=${sourcesParent}/${targetDirParent}/%{generated_sources_name}
mkdir $target
mkdir -p $target
pushd ${builtJdk}
mkdir ${target}/${builtJdkName}
mkdir -p ${target}/${builtJdkName}
cp --parents $(find . | grep -e "\.cpp$" -e "\.hpp$" -e "\.h$" -e "\.hh$" -e "\.rl$" -e "NONE$") ${target}/${builtJdkName}
popd
pushd ${sources}
mkdir ${target}/${sourcesName}
mkdir -p ${target}/${sourcesName}
cp --parents $(find make | grep -e "\.cpp$" -e "\.hpp$" -e "\.h$" -e "\.hh$" -e "\.rl$" -e "NONE$") ${target}/${sourcesName}
popd
}