grab some fixes from prepstrip script
authorMike Frysinger <vapier@gentoo.org>
Fri, 3 Feb 2006 03:09:19 +0000 (03:09 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 3 Feb 2006 03:09:19 +0000 (03:09 -0000)
svn path=/main/trunk/; revision=2629

bin/prepallstrip

index fdcaa41b14cc7ca42fb83b9165a0946dd6d253c5..19cdf9d21aaf512c53b40de0b011c4b0c3b99165 100755 (executable)
@@ -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}"