xbps-src: remove dup strip_files() in pkgtarget_funcs.sh.
This commit is contained in:
parent
3c8087683d
commit
0432cc3785
1 changed files with 0 additions and 28 deletions
|
@ -25,34 +25,6 @@
|
||||||
|
|
||||||
. ${XBPS_SHUTILSDIR}/tmpl_funcs.sh
|
. ${XBPS_SHUTILSDIR}/tmpl_funcs.sh
|
||||||
|
|
||||||
strip_files()
|
|
||||||
{
|
|
||||||
local lver
|
|
||||||
|
|
||||||
if ! command -v strip 2>&1 >/dev/null; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
[ -n "$nostrip" ] && return 0
|
|
||||||
|
|
||||||
if [ -n "$revision" ]; then
|
|
||||||
lver="${version}_${revision}"
|
|
||||||
else
|
|
||||||
lver="${version}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_normal "Package '$pkgname ($lver)': stripping files, please wait..."
|
|
||||||
for f in $(find ${DESTDIR} -type f); do
|
|
||||||
case "$(file -biz $f)" in
|
|
||||||
application/x-executable*)
|
|
||||||
strip $f && \
|
|
||||||
echo " Stripped executable: $(basename $f)";;
|
|
||||||
application/x-sharedlib*|application/x-archive*)
|
|
||||||
strip -S $f && \
|
|
||||||
echo " Stripped library: $(basename $f)";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Installs a pkg by reading its build template file.
|
# Installs a pkg by reading its build template file.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue