migratecpp.cmd 597 B

123456789101112131415161718192021
  1. @echo off
  2. if not "x%1" == "x" echo Please change to the directory you want to convert and run the script there without any command line argument! && goto endlabel
  3. echo.
  4. echo Press ENTER to convert all C++ files under the current directory:
  5. cd
  6. echo.
  7. pause
  8. rem We process .msg files as well, because of potential embedded cplusplus{{..}} sections
  9. dir /s /b *.cc *.h *.cpp *.hpp *.msg >cppfiles.lst
  10. echo The following files will be checked/modified:
  11. type cppfiles.lst | more
  12. echo.
  13. echo Press ENTER to start the conversion or CTRL-C to quit.
  14. pause
  15. perl %~dp0\migratecpp.pl cppfiles.lst
  16. :endlabel