added more patterns for binaries we don't want to search.
authorChris Koeritz <fred@gruntose.com>
Wed, 19 Jun 2013 16:48:07 +0000 (12:48 -0400)
committerChris Koeritz <fred@gruntose.com>
Wed, 19 Jun 2013 16:48:07 +0000 (12:48 -0400)
scripts/buildor/search_code.sh

index 63576c5d44a7fb99a1472133b3e2b2a98e832430..7e0b1cee94fe79b054e899cbef1d21f0dc1a59de 100644 (file)
@@ -15,6 +15,8 @@ fi
 
 #hmmm: we need to encode this useful logic as a list of binary file endings.
 find "$dir" -type f \( -iname "*" \
+  ! -iname "*~" \
+  ! -iname "*.bin" \
   ! -iname "*.bz2" \
   ! -iname "*.class" \
   ! -iname "*.dll" \
@@ -31,6 +33,8 @@ find "$dir" -type f \( -iname "*" \
   ! -iname "*.obj" \
   ! -iname "*.png" \
   ! -iname "*.snarf" \
+  ! -iname "*.so" \
+  ! -iname "*.so.2" \
   ! -iname "*.svn" \
   ! -iname "*.svn-base" \
   ! -iname "*.tar" \