Fixed copy import file

This commit is contained in:
WolverinDEV 2019-07-03 14:46:45 +02:00
parent 0c13d6b02b
commit 2c9dedfb0d
3 changed files with 7 additions and 3546 deletions

View File

@ -64,8 +64,8 @@ path_target="./modules/renderer/imports"
fi
echo "Linking \"${path_target}/${dst_file}\" to \"${path}/${src_file}\""
cp "${path}/${src_file}" "${path_target}/copy_${dst_file}"
echo "Create copy \"${path}/${src_file}\" to \"${path_target}/copy_${dst_file}\""
cp "${path}/${src_file}" "${path_target}/.copy_${dst_file}"
echo "Create copy \"${path}/${src_file}\" to \"${path_target}/.copy_${dst_file}\""
done
break
done
@ -84,15 +84,15 @@ if [[ ${path_found} -eq 0 ]]; then
rm "${path_target}/${dst_file}"
fi
if [[ ! -e "${path_target}/copy_${dst_file}" ]]; then
if [[ ! -e "${path_target}/.copy_${dst_file}" ]]; then
echo "Missing copy of file ${dst_file} because we cant find any valid link!"
exit 1
fi
if [[ ${support_rel_linking} -ne 0 ]]; then
ln -rs "${path_target}/copy_${dst_file}" "${path_target}/${dst_file}"
ln -rs "${path_target}/.copy_${dst_file}" "${path_target}/${dst_file}"
else
_source=$(realpath "${path_target}/copy_${dst_file}")
_source=$(realpath "${path_target}/.copy_${dst_file}")
_current_dir=$(pwd)
cd ${path_target}
[[ $? -ne 0 ]] && {
@ -102,7 +102,7 @@ if [[ ${path_found} -eq 0 ]]; then
ln -s "${_source}" "${dst_file}"
cd ${_current_dir}
fi
echo "Linking \"${path_target}/${dst_file}\" to \"${path_target}/copy_${dst_file}\""
echo "Linking \"${path_target}/${dst_file}\" to \"${path_target}/.copy_${dst_file}\""
done
path_found=1
fi

File diff suppressed because it is too large Load Diff

View File

@ -12,9 +12,6 @@
"../native/*/exports/"
],
"exclude": [
"./shared/imports/copy_*.d.ts",
"node_modules",
"declarations",
"app/dummy-declarations/*.d.ts"
"**/.copy_*.d.ts"
]
}