Update llvm{do,grep} to also search cmake / .cmake files
authorDaniel Dunbar <daniel@zuster.org>
Thu, 16 Jul 2009 00:06:36 +0000 (00:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 16 Jul 2009 00:06:36 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75867 91177308-0d34-0410-b5e6-96231b3b80d8

utils/llvmdo
utils/llvmgrep

index b666f2209b06d9a00d9898f00971081fe1765e52..26f2183ae4ee541905a5188d56995b58e655b37e 100755 (executable)
@@ -53,7 +53,7 @@ if test "$1" = "-dirs" ; then
   LLVMDO_DIRS="$2"
   shift ; shift
 elif test -z "$LLVMDO_DIRS" ; then
-  LLVMDO_DIRS="include lib tools utils runtime autoconf docs test examples projects"
+  LLVMDO_DIRS="include lib tools utils runtime autoconf docs test examples projects cmake"
 fi
 
 if test "$1" = "-code-only" ; then
@@ -126,6 +126,7 @@ files_to_match="\
   -o -name *.tr \
   -o -name *.y \
   -o -name Make* \
+  -o -name *.cmake \
   -o -name llvmdo \
   -o -name llvmgrep \
   -o -name check-each-file \
index 7d7355ba9904b52cfca9edc9ab77771771556018..566ed829737596f4ea5d5d49148e2ee2094e9969 100755 (executable)
@@ -33,7 +33,7 @@ if test -d "$TOPDIR" ; then
     *) grep_cmd="egrep -l -n" ;;
   esac
   ./utils/llvmdo -topdir "$TOPDIR" \
-    -dirs "include lib tools utils docs examples test projects" $grep_cmd "$*"
+    -dirs "include lib tools utils docs examples test projects cmake" $grep_cmd "$*"
 else
   echo "Can't find LLVM top directory"
 fi