diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-15 03:50:10 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-15 03:50:10 +0000 |
commit | 920baeee80bc2c381c4eb773297a716ad83d018f (patch) | |
tree | bf9b01044836eb4f5a40e2fa4a1f25f8f3e46949 /utils/getsrcs.sh | |
parent | 6ae928fc69dc18754d1c72437c7a75357685e066 (diff) | |
download | llvm-920baeee80bc2c381c4eb773297a716ad83d018f.tar.gz llvm-920baeee80bc2c381c4eb773297a716ad83d018f.tar.bz2 llvm-920baeee80bc2c381c4eb773297a716ad83d018f.tar.xz |
Simplify this a little bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/getsrcs.sh')
-rwxr-xr-x | utils/getsrcs.sh | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/utils/getsrcs.sh b/utils/getsrcs.sh index d6a8ba2d88..2432edfa75 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 |