1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Update llvm{do,grep} to also search cmake / .cmake files

llvm-svn: 75867
This commit is contained in:
Daniel Dunbar 2009-07-16 00:06:36 +00:00
parent 8b6ad7143c
commit 17a807d7b3
2 changed files with 3 additions and 2 deletions

View File

@ -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 \

View File

@ -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