3 @rem Check that all files have trailing spaces stripped
4 set OutTrailingSpaceListFile=output\knockout-files-to-clean.txt
6 findstr -nrs -c:"[ ]$" *.js *.html *.css *.bat *.ps1 | findstr -rv "^build\\output" > build\%OutTrailingSpaceListFile%
8 for %%R in (%OutTrailingSpaceListFile%) do if %%~zR gtr 0 goto :NeedFixTrailingSpace
9 del %OutTrailingSpaceListFile%
10 goto :TrailingSpaceOkay
13 echo The following files have trailing spaces that need to be cleaned up:
15 type %OutTrailingSpaceListFile%
16 del %OutTrailingSpaceListFile%