From: ibs Date: Wed, 21 Nov 2012 06:44:21 +0000 (+0400) Subject: collect_binary.bat refactored; X-Git-Tag: V6_7_1~89 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=944cf32651fcc53a70095deb5960129dd7cb5b9d;p=occt-wok.git collect_binary.bat refactored; tclIndex copying added; vc11 support added; unused files copying removed --- diff --git a/collect_binary.bat b/collect_binary.bat index 131a661..ea92b9f 100644 --- a/collect_binary.bat +++ b/collect_binary.bat @@ -8,11 +8,6 @@ rem %2 - arch rem %3 - debug&release rem %4 - related package name -set "cmdArg1=%1" -set "cmdArg2=%2" -set "cmdArg3=%3" -set "cmdArg4=%4" - set "installPath=package" set configFile=collect_binary.cfg @@ -20,6 +15,11 @@ if exist %configFile% ( for /f "delims=" %%x in (%configFile%) do (set "%%x") ) +if not "%1" == "" set "cmdArg1=%1" +if not "%2" == "" set "cmdArg2=%2" +if not "%3" == "" set "cmdArg3=%3" +if not "%4" == "" set "installPath=%4" + rem if command line is empty and config file is not exist if "%cmdArg1%" == "" goto :eofWithEcho if "%cmdArg2%" == "" goto :eofWithEcho @@ -35,24 +35,22 @@ goto :eof :GoOn echo. -echo "args are: %cmdArg1% %cmdArg2% %cmdArg3% %cmdArg4% +echo "args are: %cmdArg1% %cmdArg2% %cmdArg3% %installPath% echo. -if not "%cmdArg4%" == "" ( - set "installPath=%cmdArg4%" -) - rem Setup environment call "%~dp0env.bat" %cmdArg1% %cmdArg2% %cmdArg3% if "%ARCH%" == "32" ( set "xBit=x86" ) else ( - if "%VCVER%" == "vc10" ( - set "xBit=x64" - ) else if "%VCVER%" == "vc9" ( + if "%VCVER%" == "vc9" ( set "xBit=amd64" - ) + ) else if "%VCVER%" == "vc10" ( + set "xBit=x64" + ) else if "%VCVER%" == "vc11" ( + set "xBit=x64" + ) ) set "TCL_LIB_PATH=" @@ -89,6 +87,10 @@ if "%VCVER%" == "vc8" ( set "VSDir=%VS100COMNTOOLS%" set "msvcXNum=100" +) else if "%VCVER%" == "vc11" ( + set "VSDir=%VS110COMNTOOLS%" + set "msvcXNum=110" + ) else ( echo Error: wrong VS identifier exit /B @@ -405,26 +407,7 @@ xcopy "src\WOKTclLib\server_open.xpm" "%installPath%\lib\" xcopy "src\WOKTclLib\source.xpm" "%installPath%\lib\" xcopy "src\WOKTclLib\storable.xpm" "%installPath%\lib\" xcopy "src\WOKTclLib\tclx.nt" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.mam" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.mamx" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.min" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.minx" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc10" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc10_64" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc10x" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc10x_64" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc6" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc6x" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc7" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc7x" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc8" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc8_64" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc8x" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc8x_64" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc9" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc9_64" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc9x" "%installPath%\lib\" -xcopy "src\WOKTclLib\template.vc9x_64" "%installPath%\lib\" +xcopy "src\WOKTclLib\tclIndex" "%installPath%\lib\" xcopy "src\WOKTclLib\textfile_adm.xpm" "%installPath%\lib\" xcopy "src\WOKTclLib\textfile_rdonly.xpm" "%installPath%\lib\" xcopy "src\WOKTclLib\toolkit.xpm" "%installPath%\lib\"