migrated knockout asset to bower
[openemr.git] / public / assets / knockout-2-2-1 / build / tools / check-trailing-space-windows.bat
blob0b884338fb372a87601a01b46985bb6ccda4d4b6
1 @echo off
3 @rem Check that all files have trailing spaces stripped
4 set OutTrailingSpaceListFile=output\knockout-files-to-clean.txt
5 cd ..
6 findstr -nrs -c:"[ ]$" *.js *.html *.css *.bat *.ps1 | findstr -rv "^build\\output" > build\%OutTrailingSpaceListFile%
7 cd build
8 for %%R in (%OutTrailingSpaceListFile%) do if %%~zR gtr 0 goto :NeedFixTrailingSpace
9 del %OutTrailingSpaceListFile%
10 goto :TrailingSpaceOkay
12 :NeedFixTrailingSpace
13 echo The following files have trailing spaces that need to be cleaned up:
14 echo.
15 type %OutTrailingSpaceListFile%
16 del %OutTrailingSpaceListFile%
17 exit /b 1
19 :TrailingSpaceOkay