nice fixups for file lists.
authorChris Koeritz <fred@gruntose.com>
Sun, 14 Apr 2013 17:47:17 +0000 (13:47 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 14 Apr 2013 17:47:17 +0000 (13:47 -0400)
scripts/archival/search_arch.sh
scripts/buildor/search_code.sh

index 999a7fbe13da9b704d617613caab7798e811c9ed..523ccab72f076f21445427b160f4683d8dde8ff7 100644 (file)
@@ -28,7 +28,7 @@ TMPFILE="$(mktemp "$TMP/jarfinding.XXXXXX")"
 
 # locate all the archive files under the path.
 find "$dir" -iname "*.jar" -o -iname "*.zip" -o -iname "*.tar" \
-  -o -iname "*.iar" -o -iname "*.oar" \
+  -o -iname "*.iar" -o -iname "*.oar" -iname "*.bz2" \
   >"$TMPFILE"
 
 while read line; do
index 411f8cad732142cff033a68490d465e4ddfc75a4..63576c5d44a7fb99a1472133b3e2b2a98e832430 100644 (file)
@@ -13,16 +13,24 @@ if [ -z "$dir" ]; then
   dir=.
 fi
 
+#hmmm: we need to encode this useful logic as a list of binary file endings.
 find "$dir" -type f \( -iname "*" \
+  ! -iname "*.bz2" \
   ! -iname "*.class" \
   ! -iname "*.dll" \
+  ! -iname "*.deb" \
+  ! -iname "*.dmg" \
   ! -iname "*.exe" \
   ! -iname "entries" \
   ! -iname "*.git" \
   ! -iname "*.gz" \
+  ! -iname "*.iar" \
   ! -iname "*.jar" \
   ! -iname "*.lib" \
+  ! -iname "*.oar" \
   ! -iname "*.obj" \
+  ! -iname "*.png" \
+  ! -iname "*.snarf" \
   ! -iname "*.svn" \
   ! -iname "*.svn-base" \
   ! -iname "*.tar" \