xbps-src: handle files with spaces and other characters.

This commit is contained in:
Juan RP 2010-12-14 16:34:05 +01:00
parent 754274d635
commit f2bd4e603b
3 changed files with 46 additions and 39 deletions

View file

@ -56,13 +56,14 @@ strip_files_real()
fi
msg_normal "Package '$pkgname ($lver)': stripping files, please wait..."
for f in $(find ${DESTDIR} -type f); do
find ${DESTDIR} -type f | while read f
do
case "$(file -biz $f)" in
application/x-executable*)
strip $f && \
strip "$f" && \
echo " Stripped executable: $(basename $f)";;
application/x-sharedlib*|application/x-archive*)
strip -S $f && \
strip -S "$f" && \
echo " Stripped library: $(basename $f)";;
esac
done