From f258046712b937613578bff8546c36c5b5d9f1fb Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 14 Apr 2013 13:47:17 -0400 Subject: [PATCH] nice fixups for file lists. --- scripts/archival/search_arch.sh | 2 +- scripts/buildor/search_code.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/archival/search_arch.sh b/scripts/archival/search_arch.sh index 999a7fbe..523ccab7 100644 --- a/scripts/archival/search_arch.sh +++ b/scripts/archival/search_arch.sh @@ -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 diff --git a/scripts/buildor/search_code.sh b/scripts/buildor/search_code.sh index 411f8cad..63576c5d 100644 --- a/scripts/buildor/search_code.sh +++ b/scripts/buildor/search_code.sh @@ -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" \ -- 2.34.1