X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fwhitespacely-canonical-filenames;h=e0443753b776228652ccc7b2a03c12d218ad8696;hb=ab5427d31da2bd95805cccc8e47b8f43d3dd606d;hp=b8587958d5e3b30f30a10c473f0485fd43d740b9;hpb=1af3faa2b79125b774c2182cab841ed7ee555bed;p=sbcl.git diff --git a/tools-for-build/whitespacely-canonical-filenames b/tools-for-build/whitespacely-canonical-filenames index b858795..e044375 100755 --- a/tools-for-build/whitespacely-canonical-filenames +++ b/tools-for-build/whitespacely-canonical-filenames @@ -9,11 +9,28 @@ # 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 +# .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 '*'$source_extension -print + find . \( \ + -path contrib/asdf -o \ + -name _darcs -o \ + -name '{arch}' -o \ + -name CVS -o \ + -name .hg -o \ + -name .svn \) -type d -prune -o \ + $find_opt -name '*'$source_extension -print done + +touch $stamp_file