use has instead of bloated bash constructs
authorSimon Stelling <blubb@gentoo.org>
Sat, 15 Apr 2006 18:01:50 +0000 (18:01 -0000)
committerSimon Stelling <blubb@gentoo.org>
Sat, 15 Apr 2006 18:01:50 +0000 (18:01 -0000)
svn path=/main/trunk/; revision=3153

bin/ebuild.sh

index 8aa7ee2011fd2bd688675cb2f91afe2303282e52..c90cbe4a92eea88d6afd7f0dcd88c632887675f0 100755 (executable)
@@ -1070,9 +1070,7 @@ dyn_help() {
        echo "  c++ flags   : ${CXXFLAGS}"
        echo "  make flags  : ${MAKEOPTS}"
        echo -n "  build mode  : "
-       if [[ " ${FEATURES} " == *" nostrip "* ]] || \
-          [[ " ${RESTRICT} " == *" nostrip "* ]] || \
-          [[ " ${RESTRICT} " == *" strip "* ]]
+       if hasq nostrip ${FEATURES} ${RESTRICT} || hasq strip ${RESTRICT} ;
        then
                echo "debug (large)"
        else