summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-03 03:09:19 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-03 03:09:19 +0000
commite152c669d0c38cab9c20f3c739dcbb2bb6515289 (patch)
treef1b6c1d5888074bb2f7cc22671f8373bcb378646
parent42a25555a477e727dd4d185b3f50127b8aba3306 (diff)
downloadportage-e152c669d0c38cab9c20f3c739dcbb2bb6515289.tar.gz
portage-e152c669d0c38cab9c20f3c739dcbb2bb6515289.tar.bz2
portage-e152c669d0c38cab9c20f3c739dcbb2bb6515289.zip
grab some fixes from prepstrip script
svn path=/main/trunk/; revision=2629
-rwxr-xr-xbin/prepallstrip7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/prepallstrip b/bin/prepallstrip
index fdcaa41b1..19cdf9d21 100755
--- a/bin/prepallstrip
+++ b/bin/prepallstrip
@@ -3,9 +3,12 @@
# Distributed under the terms of the GNU General Public License v2
# $Id: /var/cvsroot/gentoo-src/portage/bin/prepallstrip,v 1.12 2004/10/04 13:56:50 vapier Exp $
-if [ "${FEATURES//*nostrip*/true}" == "true" ] || [ "${RESTRICT//*nostrip*/true}" == "true" ] ; then
+if [[ " ${FEATURES} " == *" nostrip "* ]] || \
+ [[ " ${RESTRICT} " == *" nostrip "* ]] || \
+ [[ " ${RESTRICT} " == *" strip "* ]]
+then
exit 0
fi
echo "prepallstrip:"
-prepstrip "${D}"
+exec prepstrip "${D}"