summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-09 22:53:56 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-11-09 22:53:56 +0100
commitbe31527595526f6124f24cee5fb1fd565ec764f7 (patch)
tree982ec1c1e62adbbd3aec96a06aca5f00a05fc375
parenta448a42eac5d797fa72b9a20b7677f6a1a9c9c86 (diff)
downloadmidipix_build-be31527595526f6124f24cee5fb1fd565ec764f7.tar.bz2
midipix_build-be31527595526f6124f24cee5fb1fd565ec764f7.tar.xz
tarballs: convert all symbolic links matching *.so{,.*} to hard links when creating tarballs.
-rw-r--r--999.tarballs.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/999.tarballs.build b/999.tarballs.build
index 94accaf5..19ab7f7a 100644
--- a/999.tarballs.build
+++ b/999.tarballs.build
@@ -37,7 +37,8 @@ secure_rm ${PREFIX_BASENAME}/lib.bak;
insecure_mkdir ${PREFIX_BASENAME}/lib.bak;
tar -C ${PREFIX_BASENAME}/lib -cpf - . | tar -C ${PREFIX_BASENAME}/lib.bak -xpf -;
log_msg info "Backed up ${PREFIX_BASENAME}/lib.";
-for __ in $(find native/lib -maxdepth 1 -type l); do
+for __ in $(find native/lib \( -iname \*.so -or -iname \*.so.\* \) \
+ -type l); do
___="native/lib/$(readlink -- ${__})";
if [ -f "${___}" ]; then
secure_rm ${__}; ln -f -- "${___}" "${__}";