X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fwhitespacely-canonical-filenames;h=5a61381e1ec46de67edd42160abfc79d8d519b01;hb=59b27c998ce5fc950b5efc5a82627b94192c03cf;hp=54e65dedaabf914990e23616225ab1ed6d71e83c;hpb=4ca6d75333ca2e090af6e86d0c4d546aba0f4e54;p=sbcl.git diff --git a/tools-for-build/whitespacely-canonical-filenames b/tools-for-build/whitespacely-canonical-filenames index 54e65de..5a61381 100755 --- a/tools-for-build/whitespacely-canonical-filenames +++ b/tools-for-build/whitespacely-canonical-filenames @@ -9,11 +9,19 @@ # glob patterns for source files in languages for which the # canonicalization is safe (not affecting meaning, at least given the # conservative syntax used in SBCL sources) -source_extensions='.lisp .lisp-expr .c .h' +source_extensions='.lisp .lisp-expr .c .h .asd' # other candidates: # .sh: if ./make.sh is altered, Bad Things happen # ? +stamp_file=whitespace-stamp + +if [ -e $stamp_file ]; then + find_opt="-newer $stamp_file" +else + find_opt="" +fi + for source_extension in $source_extensions; do find . \( \ -name _darcs -o \ @@ -21,5 +29,7 @@ for source_extension in $source_extensions; do -name CVS -o \ -name .hg -o \ -name .svn \) -type d -prune -o \ - -name '*'$source_extension -print + $find_opt -name '*'$source_extension -print done + +touch $stamp_file