summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-21 00:09:47 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-21 00:09:47 +0000
commitcbedd62608096fab5abe178c213d844565db0809 (patch)
tree4474ec5b8cc39727e501652f164f63f7cbe5728e /bin/prepstrip
parentRemove old debugging related error message. (diff)
downloadportage-multirepo-cbedd62608096fab5abe178c213d844565db0809.tar.gz
portage-multirepo-cbedd62608096fab5abe178c213d844565db0809.tar.bz2
portage-multirepo-cbedd62608096fab5abe178c213d844565db0809.zip
dont use string substitution as this operation can be quite slow on older bash versions (<=3.0) #116111
svn path=/main/trunk/; revision=2416
Diffstat (limited to 'bin/prepstrip')
-rwxr-xr-xbin/prepstrip6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index e86e5fe3..f01dc1d0 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -26,7 +26,7 @@ save_elf_debug() {
${CHOST}-objcopy --add-gnu-debuglink=${y}.debug ${x}
}
-for x in $(scanelf -yRBF%F $@) $(for y in "$@"; do find $y -type f -name '*.a' -print0 ; done); do
+for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find $y -type f -name '*.a' -print0 ; done); do
if [ ${banner} -eq 1 ] ; then
echo "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
banner=0
@@ -35,11 +35,11 @@ for x in $(scanelf -yRBF%F $@) $(for y in "$@"; do find $y -type f -name '*.a' -
f=$(file "${x}") || continue
[ -z "${f}" ] && continue
- if [ -z "${f/*current ar archive*/}" ]; then
+ if [[ ${f} == *"current ar archive"* ]] ; then
echo " ${x:${#D}:${#x}}"
${STRIP} -g "${x}"
fi
- if [ -z "${f/*SB executable*/}" ] || [ -z "${f/*SB shared object*/}" ]; then
+ if [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* ]] ; then
echo " ${x:${#D}:${#x}}"
save_elf_debug "${x}"
${STRIP} ${PORTAGE_STRIP_FLAGS} "${x}"