Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Algorithms.GradientDescent/Main/CustomPostBuild.cmd @ 5607

Last change on this file since 5607 was 5518, checked in by gkronber, 14 years ago

#1423: added main project for automatic deployment

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