X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=library-bundler;h=a1ac9ebf6a645026c303f725ce03868e20f98b79;hb=7b586b7b5465eba34ed20acfc6bfc15a38e0e3d6;hp=bf8622c4932969406a85d312429957867969cd17;hpb=f34c8ec75332fc123f51df2c90e78921274d4986;p=xonotic%2Fnetradiant.git diff --git a/library-bundler b/library-bundler index bf8622c4..a1ac9ebf 100755 --- a/library-bundler +++ b/library-bundler @@ -16,13 +16,13 @@ _sed () { esac } -_cpr () { +_cp () { case "${system_name}" in 'macos') - cp -R ${@} + gcp -R --preserve=timestamps -H -L "${@}" ;; *) - cp -R --preserve=timestamps ${@} + cp -R --preserve=timestamps -H -L "${@}" ;; esac } @@ -282,11 +282,7 @@ Multi::bundleGtkDepsFromFile () { mkdir -p "${bundle_dir}/$(dirname "${bundle_component_dir}")" - _cpr -H -L \ - "${real_component_dir}" \ - "${bundle_dir}/${bundle_component_dir}" - - touch -r \ + _cp \ "${real_component_dir}" \ "${bundle_dir}/${bundle_component_dir}" @@ -317,11 +313,7 @@ Multi::bundleLibFromFile () { continue fi - cp -H \ - "${lib_file}" \ - "${lib_dir}/${lib_basename}" - - touch -r \ + _cp \ "${lib_file}" \ "${lib_dir}/${lib_basename}"