码迷,mamicode.com
首页 > 其他好文 > 详细

increasebuild 编译批处理

时间:2015-04-23 15:59:48      阅读:306      评论:0      收藏:0      [点我收藏+]

标签:

@echo off
set BuildConsoleTool=
goto findpathc


:findpathc
set BuildConsoleTool="C:\Program Files (x86)\Xoreax\IncrediBuild\BuildConsole.exe"
if exist %BuildConsoleTool% ( goto build ) else goto findpathd

:findpathd
set BuildConsoleTool="D:\Program Files\Xoreax\IncrediBuild\BuildConsole.exe"
if exist %BuildConsoleTool% ( goto build ) else goto errorexe

:errorexe
echo "找不到BuildConsole.exe"
goto end

:up_all
7z a -mx9 upload/Server.7z GameServer64.exe GameServer64.pdb
svn commit upload -m "server"
goto end

:error
pause
goto end

:build
echo "编译服务器"
cd ..\..\Server\GameServer
%BuildConsoleTool% GameServer.sln /rebuild /cfg="Shipping_Server|x64" /OpenMonitor
if %ERRORLEVEL% neq 0 goto error
echo "上传服务器"
cd ..\..\Bin
goto up_all

:end



increasebuild 编译批处理

标签:

原文地址:http://my.oschina.net/u/659405/blog/405521

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!