Antoine Pitrou | 7f1e174 | 2011-02-25 14:19:48 +0000 | [diff] [blame] | 1 | @echo off |
2 | rem A batch program to build or rebuild a particular configuration. | ||||
3 | rem just for convenience. | ||||
4 | |||||
5 | setlocal | ||||
6 | set platf=Win32 | ||||
7 | set conf=Release | ||||
8 | set build=/build | ||||
9 | |||||
10 | :CheckOpts | ||||
11 | if "%1"=="-c" (set conf=%2) & shift & shift & goto CheckOpts | ||||
12 | if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts | ||||
13 | if "%1"=="-r" (set build=/rebuild) & shift & goto CheckOpts | ||||
14 | |||||
15 | set cmd=devenv pcbuild.sln %build% "%conf%|%platf%" | ||||
16 | echo %cmd% | ||||
17 | %cmd% |