1 @echo off 2 3 @echo ========================= 4 5 @echo 当前计算机名称:%computername% 6 7 @echo 代码更新时间:%date% %time% 8 9 @echo ========================= 10 11 rem SVN安装目录 12 13 set svn_home=D:\Program Files\TortoiseSVN\bin 14 15 rem SVN工作目录 16 17 set svn_work=E:\工作数据 18 19 rem SVN日志目录 20 21 set setup_path=D:\ 22 23 @echo 正在更新目录 %svn_work% 24 25 if exist %svn_work% GOTO :gengxin else GOTO :MK 26 27 :MK 28 29 @echo 请检查您的工作目录是否正确 30 31 echo & pause GOTO :END 32 33 @echo 更新完成退出 34 35 goto :END 36 37 :END 38 39 exit 40 41 :gengxin 42 43 if exist "%setup_path%"\autoUpdate.log (echo update: %date% %time% >> "%setup_path%"\autoUpdate.log) else echo create: %date% %time% >"%setup_path%"\autoUpdate.log 44 ::"%svn_home%"\TortoiseProc.exe/command:cleanup /path:"%svn_work%" /notempfile /closeonend:0 45 "%svn_home%"\TortoiseProc.exe/command:update /path:"%svn_work%" /notempfile /closeonend:1 46 47 exit
批处理更新SVN代码
内容版权声明:除非注明,否则皆为本站原创文章。