Changes in directory llvm/utils:

llvmgrep updated: 1.8 -> 1.9
llvmdo updated: 1.10 -> 1.11
---
Log message:

Allow a sequence of digits at the end of the directory name when trying to
determine the top directory. This allows the tool to find the correct top
directory when you have something like:

   /x/llvm
   /x/llvm2
   /x/llvm3

Previously the scripts would always find /x/llvm even if you were in the
llvm2 or llvm3 directory because the pattern didn't allow the digits at 
the end of the path.


---
Diffs of the changes:  (+3 -2)

 llvmdo   |    2 +-
 llvmgrep |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/utils/llvmgrep
diff -u llvm/utils/llvmgrep:1.8 llvm/utils/llvmgrep:1.9
--- llvm/utils/llvmgrep:1.8     Thu Oct  7 11:03:21 2004
+++ llvm/utils/llvmgrep Tue Mar 14 00:08:05 2006
@@ -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


Index: llvm/utils/llvmdo
diff -u llvm/utils/llvmdo:1.10 llvm/utils/llvmdo:1.11
--- llvm/utils/llvmdo:1.10      Thu Jan 19 16:01:51 2006
+++ llvm/utils/llvmdo   Tue Mar 14 00:08:05 2006
@@ -43,7 +43,7 @@
   exit 1
 fi
 shift;
-TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
+TOPDIR=`pwd | sed -e 's#\(.*/llvm[0-9]*\).*#\1#'`
 if test -d "$TOPDIR" ; then
   cd $TOPDIR
   case `uname -s` in



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to