From b763a8ff679bbb4112ddf7be8543555183922600 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 29 Jul 2013 10:57:52 -0400 Subject: [PATCH] added directories to not bother with, which are commonly generated in builds. --- scripts/files/filename_helper.pl | 8 +------- scripts/text/differ.pl | 8 ++++++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/files/filename_helper.pl b/scripts/files/filename_helper.pl index 531dfa51..9b8668c2 100644 --- a/scripts/files/filename_helper.pl +++ b/scripts/files/filename_helper.pl @@ -324,12 +324,8 @@ sub important_filename { # these are endings that we consider unimportant. where a caret is used # at the front, we will match only the whole string. double slashes are # used before periods to ensure we match a real period character. - -# "AssemblyInfo.c.*", -#need to regenerate these automatically. - local(@junk_files) = ("~", "^\\.#.*", "^\\._.*", "\\.aps", "\\.bak", - "^binaries", + "^binaries", "\\.clw", "^cpdiff_tmp\\.txt", "^\\.ds_store", "^diffs\\.txt", "^diff_tmp\\.txt", "\\.dsp", "\\.dsw", "\\.gid", "gmon\\.out", "\\.isr", "^isconfig\\.ini", "\\.log", "^manifest.txt", "^obj", @@ -339,8 +335,6 @@ sub important_filename { "\\.stackdump", "^string1033\\.txt", "\\.suo", "\\.swp", "^thumbs.db", "\\.tmp", "^trans\\.tbl", "\\.user", "_version\\.h", "_version\\.rc", "^waste", "\\.ws4", "\\.wsm"); -#this whacks too much. what was it for? -#"^generated_.*", foreach $temp (@junk_files) { $temp = $temp . '$'; diff --git a/scripts/text/differ.pl b/scripts/text/differ.pl index 18541406..3a117669 100644 --- a/scripts/text/differ.pl +++ b/scripts/text/differ.pl @@ -117,9 +117,17 @@ sub recurse_dirs local($compare_name) = $dest . "/" . $name; # print "name is $name and to compare is $compare_name.\n"; local($new_name) = $src . "/" . $name; +#hmmm: need an is important dirname check for this. if ( (-d $new_name) && ($name ne ".") && ($name ne "..") && ($name ne ".svn") && ($name ne ".git") + && ($name ne "bin") + && ($name ne "bin-eclipse") + && ($name ne "bin.eclipse") + && ($name ne "genned-src") + && ($name ne "genned-obj") + && ($name ne "codegen") + && ($name ne "unit-test-reports") && ($name ne "CVS") ) { # print "recursing on: source $name and destination $compare_name.\n"; &recurse_dirs($new_name, $compare_name); -- 2.34.1