From: Reid Spencer Date: Tue, 15 Aug 2006 03:48:22 +0000 (+0000) Subject: This script takes arguments so remove the check for number of arguments, X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6ae928fc69dc18754d1c72437c7a75357685e066;p=oota-llvm.git This script takes arguments so remove the check for number of arguments, just check the first arg to see if its -topdir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29694 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/llvmgrep b/utils/llvmgrep index 0b6bdf35b02..c24dc6f3ab6 100755 --- a/utils/llvmgrep +++ b/utils/llvmgrep @@ -18,13 +18,11 @@ # details. ##===----------------------------------------------------------------------===## -if test $# -gt 1 ; then - if test "$1" = "-topdir" ; then - TOPDIR="$2" - shift; shift; - else - TOPDIR=`llvm-config --src-root` - fi +if test "$1" = "-topdir" ; then + TOPDIR="$2" + shift; shift; +else + TOPDIR=`llvm-config --src-root` fi if test -d "$TOPDIR" ; then