summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-15 03:31:15 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-15 03:31:15 +0000
commite6ff077c61ddfc5fd9cecfb2f2806e13007c43ec (patch)
tree2cfbd804bd4d134851df6031baeb657067fbb643
parent520456b7e51e4c2edb3b9f7785e565a98ae8155a (diff)
downloadportage-e6ff077c61ddfc5fd9cecfb2f2806e13007c43ec.tar.gz
portage-e6ff077c61ddfc5fd9cecfb2f2806e13007c43ec.tar.bz2
portage-e6ff077c61ddfc5fd9cecfb2f2806e13007c43ec.zip
fix inverted strip skip logic
svn path=/main/trunk/; revision=2563
-rwxr-xr-xbin/prepstrip8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index 2cff7a42b..7d4ea303b 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -56,19 +56,19 @@ for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find "${y}" -type f -name '
# the for loop from expanding the globs.
# The eval echo is to support STRIP_MASK="/*/{booga,bar}" sex.
set -o noglob
- skipstrip=0
+ stripitbaby=1
for m in $(eval echo ${STRIP_MASK}) ; do
- [[ ${x} == ${m} ]] && skipstrip=1 && break
+ [[ ${x} == ${m} ]] && stripitbaby=1 && break
done
set +o noglob
if [[ ${f} == *"current ar archive"* ]] ; then
echo " ${x:${#D}:${#x}}"
- [[ ${skipstrip} -eq 1 ]] && ${STRIP} -g "${x}"
+ [[ ${stripitbaby} -eq 1 ]] && ${STRIP} -g "${x}"
fi
if [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* ]] ; then
echo " ${x:${#D}:${#x}}"
save_elf_debug "${x}"
- [[ ${skipstrip} -eq 1 ]] && ${STRIP} ${PORTAGE_STRIP_FLAGS} "${x}"
+ [[ ${stripitbaby} -eq 1 ]] && ${STRIP} ${PORTAGE_STRIP_FLAGS} "${x}"
fi
done