llvm.org GIT mirror llvm / 6ae928f
This script takes arguments so remove the check for number of arguments, just check the first arg to see if its -topdir. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29694 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
1 changed file(s) with 5 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1717 # details.
1818 ##===----------------------------------------------------------------------===##
1919
20 if test $# -gt 1 ; then
21 if test "$1" = "-topdir" ; then
22 TOPDIR="$2"
23 shift; shift;
24 else
25 TOPDIR=`llvm-config --src-root`
26 fi
20 if test "$1" = "-topdir" ; then
21 TOPDIR="$2"
22 shift; shift;
23 else
24 TOPDIR=`llvm-config --src-root`
2725 fi
2826
2927 if test -d "$TOPDIR" ; then