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

File diff suppressed because it is too large Load Diff

View File

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