Skip to content

Commit

Permalink
Simplify this a little bit.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29695 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Reid Spencer committed Aug 15, 2006
1 parent 6ae928f commit 920baee
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions utils/getsrcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 920baee

Please sign in to comment.