Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.2/sources/HeuristicLab/CustomPostBuildTemplate_UpdateLocalInstallation.cmd @ 5955

Last change on this file since 5955 was 2638, checked in by mkommend, 15 years ago

adapted CopyAssemblies.cmd and !CustomPostBuildTemplate_UpdateLocalInstallation.cmd (ticket #799)

File size: 1.3 KB
Line 
1set target=C:\Program Files\HeuristicLab 3.0
2
3copy HeuristicLab.exe "%target%"
4copy HeuristicLab.Console.exe "%target%"
5copy HeuristicLab.exe.config "%target%"
6copy HeuristicLab.PluginInfrastructure.dll "%target%"
7
8FOR /F "skip=1 tokens=1-2 delims=: usebackq" %%G IN ("%ProjectDir%\Files.txt") DO copy "%SolutionDir%\%%G\%Outdir%\%%H" "%target%" >nul
9
10
11echo "Platform: %Platform%, architecture: %PROCESSOR_ARCHITECTURE%"
12if "%Platform%" == "x86" (   
13  FOR /F "skip=1 tokens=* usebackq" %%G IN ("%ProjectDir%\Files.x86.txt") DO copy "%SolutionDir%\%%G" "%target%" >nul
14) else if "%Platform%" == "x64" (
15  FOR /F "skip=1 tokens=* usebackq" %%G IN ("%ProjectDir%\Files.x64.txt") DO copy "%SolutionDir%\%%G" "%target%" >nul
16) else if "%Platform%" == "AnyCPU" (
17  if "%PROCESSOR_ARCHITECTURE%" == "x64" (
18  FOR /F "skip=1 tokens=* usebackq" %%G IN ("%ProjectDir%\Files.x64.txt") DO copy "%SolutionDir%\%%G" "%target%" >nul
19  ) else if "%PROCESSOR_ARCHITECTURE%" == "x86" (
20  FOR /F "skip=1 tokens=* usebackq" %%G IN ("%ProjectDir%\Files.x86.txt") DO copy "%SolutionDir%\%%G" "%target%" >nul
21  ) else (
22    echo "ERROR: unknown architecture: "%PROCESSOR_ARCHITECTURE%"
23  )
24) else (
25  echo "ERROR: unknown platform: %Platform%"
26)
27
28echo "CustomPostBuild done"
Note: See TracBrowser for help on using the repository browser.