From: Reid Spencer Date: Tue, 15 Aug 2006 03:50:10 +0000 (+0000) Subject: Simplify this a little bit. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=920baeee80bc2c381c4eb773297a716ad83d018f;p=oota-llvm.git Simplify this a little bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29695 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/getsrcs.sh b/utils/getsrcs.sh index d6a8ba2d886..2432edfa75f 100755 --- a/utils/getsrcs.sh +++ b/utils/getsrcs.sh @@ -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