[llvm-commits] CVS: llvm/utils/llvmgrep

Reid Spencer reid at x10sys.com
Mon Aug 14 20:48:36 PDT 2006



Changes in directory llvm/utils:

llvmgrep updated: 1.11 -> 1.12
---
Log message:

This script takes arguments so remove the check for number of arguments,
just check the first arg to see if its -topdir.


---
Diffs of the changes:  (+5 -7)

 llvmgrep |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)


Index: llvm/utils/llvmgrep
diff -u llvm/utils/llvmgrep:1.11 llvm/utils/llvmgrep:1.12
--- llvm/utils/llvmgrep:1.11	Mon Aug 14 13:49:05 2006
+++ llvm/utils/llvmgrep	Mon Aug 14 22:48:22 2006
@@ -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






More information about the llvm-commits mailing list