source: trunk/sources/HeuristicLab/CustomPostBuildTemplate_UpdateLocalInstallation.cmd @ 2598

Last change on this file since 2598 was 2598, checked in by gkronber, 11 years ago

Fixed post-build scripts. #799

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