aboutsummaryrefslogtreecommitdiff
path: root/utils/llvmgrep
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-15 03:48:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-15 03:48:22 +0000
commit6ae928fc69dc18754d1c72437c7a75357685e066 (patch)
tree34dd1025693350437df9b5675e25d80f4204358a /utils/llvmgrep
parent50739225f44e0c0308e97a0ef2dac30f0c54c9be (diff)
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
Diffstat (limited to 'utils/llvmgrep')
-rwxr-xr-xutils/llvmgrep12
1 files changed, 5 insertions, 7 deletions
diff --git a/utils/llvmgrep b/utils/llvmgrep
index 0b6bdf35b0..c24dc6f3ab 100755
--- a/utils/llvmgrep
+++ b/utils/llvmgrep
@@ -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