You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

fixdir.bat 449B

12345678910111213141516171819
  1. rem Use Astyle to fix style in 'C' files
  2. cd %1%
  3. fixlines -p *.c
  4. fixlines -p *.cpp
  5. fixlines -p *.cc
  6. astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.c
  7. astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.cpp
  8. astyle --style=ansi -c -o --convert-tabs --indent-preprocessor *.cc
  9. del *.orig
  10. @rem convert line terminators to Unix style LFs
  11. fixlines -u *.c
  12. fixlines -u *.cpp
  13. fixlines -u *.cc
  14. fixlines -u *.h
  15. del *.bak
  16. cd ..\