您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627
  1. @echo off
  2. rem -----------------------------------------------------
  3. rem Tiny batch script to build the input file revision.h
  4. rem revision.h contains the revision number of the wc.
  5. rem It is included by assimp.rc.
  6. rem -----------------------------------------------------
  7. rem This is not very elegant, but it works.
  8. rem ./bin shouldn't have any local modifications
  9. svnversion > tmpfile.txt
  10. set /p addtext= < tmpfile.txt
  11. del /q tmpfile.txt
  12. echo #define SVNRevision > tmpfile.txt
  13. if exist ..\..\revision.h del /q ..\..\revision.h
  14. for /f "delims=" %%l in (tmpfile.txt) Do (
  15. for /f "delims=M:" %%r in ("%addtext%") Do (
  16. echo %%l %%r >> ..\..\revision.h
  17. )
  18. )
  19. del /q tmpfile.txt