The use of C + + automated compilation tools _c language

Source: Internet
Author: User
Tags echo 7 file upload svn
@echo off
Title=hytradinggateway automated compilation and packaging tools
Mode con cols=80 lines=40
Echo-------------------------------------------------------------
echo Usage Instructions
Echo.
Echo hytradinggateway Automated compilation packaging tools, modifying
echo Usage Prerequisites:
echo 1, installation VS2008
Echo 2, install good pressure
Echo 3, Releasehytradinggateway.bat path modification
Echo.
echo 1, remove debug all, temporary files before release, specific types are as follows
echo *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp *.pdb *.bsc
echo *.ilk *.res *.ncb *.opt *.suo *.manifest *.dep *.htm
Echo.
Echo 2, delete all *.pdb *.ilk *.dll *.exe files in all bin directories before release
Echo.
Echo 3, Hytradinggateway Project compilation, contains 21 subprojects
Echo.
Echo 4, packaged after compiling, and stored in the Release\hytradinggateway directory
Echo.
Echo 5, the release version of the file upload svn can automatically complete the entire publishing process
Echo.
Echo 6, support for file positioning after packaging
Echo.
Echo 7, currently does not support SVN automatic upload, patch naming, follow-up improvement
Echo.
echo Visual C + + 2008
Echo.
Echo shaoming 2012-04-13
Echo-----------------------------------------------------------
Pause

Mode con cols=120 lines=60

Color 8A
Cls

Echo-----------------------------------------------------------
echo starts clearing invalid files
del /F /Q /S *.aps *.idb *.ncp *.obj *.pch *.sbr *.tmp *.pdb *.bsc *.ilk *.res *.ncb *.opt *.suo *.manifest *.dep *.htm

SET vscmd=c:\program Files\Microsoft Visual Studio 9.0\common7\ide\devenv
SET projectcmd= "F:\HyCode\HYTradingGateway

del/f/q/s%projectcmd%\bin\*.pdb
del/f/q/s%projectcmd%\bin\*.ilk
del/f/q/s%projectcmd%\bin\unipackage*.dll
del/f/q/s%projectcmd%\bin\tools.dll
del/f/q/s%projectcmd%\bin\activemqtool.dll
del/f/q/s%projectcmd%\bin\sqlitetool.dll
del/f/q/s%projectcmd%\bin\mjsexchangeapi.dll
del/f/q/s%projectcmd%\bin\sjsexchangeapi.dll
del/f/q/s%projectcmd%\bin\*.exe

Echo Clears invalid file completion
Echo-----------------------------------------------------------
Echo-----------------------------------------------------------
Echo Begins compiling Hytradinggateway
"%vscmd%"%projectcmd%\tools\tools.sln "/rebuild
"%vscmd%"%projectcmd%\activemqtool\activemqtool.sln "/rebuild
"%vscmd%"%projectcmd%\sqlitetool\sqlitetool.sln "/rebuild
"%vscmd%"%projectcmd%\mjsexchangeapi\mjsexchangeapi.sln "/rebuild
"%vscmd%"%projectcmd%\sjsexchangeapi\sjsexchangeapi.sln "/rebuild

"%vscmd%"%projectcmd%\unipackage_base\unipackage_base.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_cffex\unipackage_cffex.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_ctp\unipackage_ctp.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_czce\unipackage_czce.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_dce\unipackage_dce.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_ib\unipackage_ib.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_mjs\unipackage_mjs.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_shfe\unipackage_shfe.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_szse\unipackage_szse.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage\unipackage.sln "/rebuild

"%vscmd%"%projectcmd%\unipackagebank_base\unipackagebank_base.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_boc\unipackage_boc.sln "/rebuild
"%vscmd%"%projectcmd%\unipackage_bbc\unipackage_bbc.sln "/rebuild
"%vscmd%"%projectcmd%\unipackagebank\unipackagebank.sln "/rebuild

"%vscmd%"%projectcmd%\hytradinggateway\hytradinggateway.sln "/rebuild
"%vscmd%"%projectcmd%\testtrade\testtrade.sln "/rebuild

del/f/q/s%projectcmd%\bin\*.pdb
del/f/q/s%projectcmd%\bin\*.ilk

Echo Compile Hytradinggateway complete
Echo-----------------------------------------------------------

Echo-----------------------------------------------------------
Echo starts Hytradinggateway packing

Xcopy%projectcmd%\\bin "" E:\HYTradingGateway\bin\ "/e/s/h/d/c/y
Xcopy%projectcmd%\\config "" E:\HYTradingGateway\config\ "/e/s/h/d/c/y

RD/S/q E:\HYTRADINGGATEWAY\CONFIG\.SVN
del/f/q/s E:\hytradinggateway\bin\*.txt
del/f/q/s E:\hytradinggateway\bin\*.lib
del/f/q/s E:\hytradinggateway\bin\*.dat

SET Zipcmd=c:\program Files\haozip
"%zipcmd%\haozipc.exe"-r-tzip a e:\hytradinggateway-te:~0,10%.zip E:\HYTradingGateway
Copy "E:\hytradinggateway-te:~0,10%.zip" "F:\Release\HYTradingGateway\"

Echo Hytradinggateway Package Complete
Echo-----------------------------------------------------------

echo automatically opens packages and stores folders
Start "Hytradinggateway Automated compilation Packaging Tool" "F:\Release\HYTradingGateway"
Pause

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.