1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

This script takes arguments so remove the check for number of arguments,

just check the first arg to see if its -topdir.

llvm-svn: 29694
This commit is contained in:
Reid Spencer 2006-08-15 03:48:22 +00:00
parent 5376d1a901
commit 9d1b18e36e

View File

@ -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