From 33a2b111caec82c121ee5431a57db42044956e90 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 20 Feb 2021 14:23:41 +0100 Subject: [PATCH] library-bundler: rely on gcp instead of cp on macos --- library-bundler | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/library-bundler b/library-bundler index bf8622c4..e155abc7 100755 --- a/library-bundler +++ b/library-bundler @@ -16,13 +16,13 @@ _sed () { esac } -_cpr () { +_cp () { case "${system_name}" in 'macos') - cp -R ${@} + gcp -a --preserve=timestamps -H -L "${@}" ;; *) - cp -R --preserve=timestamps ${@} + cp -a --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}" -- 2.39.2