Files
ChanSort/source/makeDistribZip.cmd

46 lines
1.6 KiB
Batchfile
Raw Normal View History

2013-03-31 14:09:38 +02:00
@echo off
set curdate=%date:~6,4%-%date:~3,2%-%date:~0,2%
2015-06-05 06:12:49 +02:00
set target=%cd%\..\..\ChanSort_%curdate%
set DXversion=14.2
2013-03-31 14:09:38 +02:00
mkdir "%target%" 2>nul
del /s /q "%target%\*"
copy debug\ChanSort.exe* "%target%"
copy debug\ChanSort.*.dll "%target%"
copy debug\ChanSort.*.ini "%target%"
copy debug\Lookup.csv "%target%"
copy DLL\* "%target%"
del "%target%\*nunit*.dll"
2013-03-31 14:09:38 +02:00
mkdir "%target%\de" 2>nul
mkdir "%target%\pt" 2>nul
mkdir "%target%\ru" 2>nul
2013-03-31 14:09:38 +02:00
xcopy /siy debug\de "%target%\de"
xcopy /siy debug\pt "%target%\pt"
copy DLL\ChanSort.resources.dll "%target%\ru"
2013-03-31 14:09:38 +02:00
copy readme.txt "%target%"
for %%f in (Utils Data Printing XtraPrinting XtraReports XtraEditors XtraBars XtraGrid XtraLayout XtraTreeList) do call :copyDll %%f
2013-03-31 14:09:38 +02:00
cd ..
del Website\ChanSort.zip 2>nul
copy Source\readme.txt %target%
cd %target%\..
"c:\program files\7-Zip\7z.exe" a -tzip ChanSort_%curdate%.zip ChanSort_%curdate%
2013-03-31 14:09:38 +02:00
pause
goto:eof
:copyDll
echo Copying DevExpress %1
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\DevExpress.%1.v%DXversion%.dll"
2013-03-31 14:09:38 +02:00
if exist %source% copy %source% "%target%"
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\DevExpress.%1.v%DXversion%.Core.dll"
2013-03-31 14:09:38 +02:00
if exist %source% copy %source% "%target%"
for %%l in (de pt) do call :copyLangDll %1 %%l
goto:eof
:copyLangDll
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\%2\DevExpress.%1.v%DXversion%.resources.dll"
if exist %source% copy %source% "%target%\%2"
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\%2\DevExpress.%1.v%DXversion%.Core.resources.dll"
if exist %source% copy %source% "%target%\%2"
2013-03-31 14:09:38 +02:00
goto:eof