Free cookie consent management tool by TermsFeed Policy Generator

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

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

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

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