summaryrefslogtreecommitdiff
path: root/utils/llvmgrep
diff options
context:
space:
mode:
Diffstat (limited to 'utils/llvmgrep')
-rwxr-xr-xutils/llvmgrep3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/llvmgrep b/utils/llvmgrep
index a1f77636c4..e5a08ad005 100755
--- a/utils/llvmgrep
+++ b/utils/llvmgrep
@@ -18,7 +18,8 @@
# details.
##===----------------------------------------------------------------------===##
-TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
+TOPDIR=`pwd | sed -e 's#\(.*/llvm[0-9]*\).*#\1#'`
+echo $TOPDIR
if test -d "$TOPDIR" ; then
cd $TOPDIR
case `uname -s` in