makepkg: Fix STRIP_DIRS test.
Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
0e0a846135
commit
6ede1a5af0
1 changed files with 3 additions and 2 deletions
|
@ -727,9 +727,10 @@ tidy_install() {
|
||||||
if [ "$(check_option strip)" = "y" ]; then
|
if [ "$(check_option strip)" = "y" ]; then
|
||||||
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")"
|
||||||
local binary
|
local binary
|
||||||
if [ -z "${STRIP_DIRS[@]}" ]; then
|
if [ -z "${STRIP_DIRS[*]}" ]; then
|
||||||
# fall back to default value
|
# fall back to default value
|
||||||
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
|
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}}
|
||||||
|
opt/*/{bin,lib,sbin})
|
||||||
fi
|
fi
|
||||||
find ${STRIP_DIRS[@]} -type f 2>/dev/null | while read binary ; do
|
find ${STRIP_DIRS[@]} -type f 2>/dev/null | while read binary ; do
|
||||||
case "$(file -biz "$binary")" in
|
case "$(file -biz "$binary")" in
|
||||||
|
|
Loading…
Add table
Reference in a new issue