Simplify this a little bit.
authorReid Spencer <rspencer@reidspencer.com>
Tue, 15 Aug 2006 03:50:10 +0000 (03:50 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 15 Aug 2006 03:50:10 +0000 (03:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29695 91177308-0d34-0410-b5e6-96231b3b80d8

utils/getsrcs.sh

index d6a8ba2d886dd63937d40b6c681e11ff0e65a71b..2432edfa75f25d30578409d8f5a08f377d928029 100755 (executable)
 # 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