From 452be375b7ac8b8ffdb5a101b71d23c5cd27c5c9 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 15 Aug 2006 03:50:10 +0000 Subject: [PATCH] Simplify this a little bit. llvm-svn: 29695 --- utils/getsrcs.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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