SVN更新.bat 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @echo off
  2. @echo =========================
  3. @echo author IT
  4. @echo =========================
  5. rem SVN安装目录
  6. set svn_home=C:\Program Files\TortoiseSVN\bin
  7. rem SVN工作目录
  8. set svn_work=E:\lyfz-project.org
  9. set svn_work1=E:\lyfzClassicWeb
  10. set svn_work2=E:\CodeOfERPIintegrate
  11. set svn_work3=E:\CodeOfNewERP
  12. set svn_work4=E:\CodeOfOldERP
  13. set svn_work5=E:\common
  14. set svn_work6=E:\filezilla-project.org
  15. set svn_work7=E:\HRepository
  16. set svn_work8=E:\IOS.Project
  17. set svn_work9=E:\lyfzQA
  18. set svn_work10=E:\lyfzSource
  19. set svn_work11=E:\NewCRM
  20. set svn_work12=E:\TheCompany
  21. set svn_work13=E:\ThirdParty
  22. set svn_work14=E:\TortoiseSvn
  23. rem SVN日志目录
  24. set setup_path=E:\
  25. @echo 正在更新目录 %svn_work%
  26. if exist %svn_work% GOTO :gengxin else GOTO :MK
  27. :MK
  28. @echo 请检查您的工作目录是否正确
  29. echo & pause GOTO :END
  30. @echo 更新完成退出
  31. goto :END
  32. :END
  33. exit
  34. :gengxin
  35. if exist "%setup_path%"\autoUpdate.log (echo update: %date% %time% >> "%setup_path%"\autoUpdate.log) else echo create: %date% %time% >"%setup_path%"\autoUpdate.log
  36. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work%" /notempfile /closeonend:1
  37. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work1%" /notempfile /closeonend:1
  38. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work2%" /notempfile /closeonend:1
  39. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work3%" /notempfile /closeonend:1
  40. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work4%" /notempfile /closeonend:1
  41. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work5%" /notempfile /closeonend:1
  42. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work6%" /notempfile /closeonend:1
  43. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work7%" /notempfile /closeonend:1
  44. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work8%" /notempfile /closeonend:1
  45. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work9%" /notempfile /closeonend:1
  46. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work10%" /notempfile /closeonend:1
  47. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work11%" /notempfile /closeonend:1
  48. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work12%" /notempfile /closeonend:1
  49. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work13%" /notempfile /closeonend:1
  50. "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work14%" /notempfile /closeonend:1
  51. exit