forked from OrchardCMS/Orchard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mechanical refinement to build cmd files
build.cmd can take an optional target name like Compile or several targets in order with quotes like "Compile,Package" clicktobuild.cmd will detect when the sdk env variable is not present, and vs2k8 is, and it will run the vs batch to initialize environment for calling msbuild --HG-- branch : dev
- Loading branch information
Louis DeJardin
authored and
Louis DeJardin
committed
Feb 7, 2010
1 parent
521ea7c
commit 6267c93
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
|
||
if "%WindowsSdkDir%" neq "" goto build | ||
if exist "%ProgramFiles%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" goto initialize2k8 | ||
echo "Unable to detect suitable environment. Build may not succeed." | ||
goto build | ||
|
||
|
||
:initialize2k8 | ||
call "%ProgramFiles%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 | ||
goto build | ||
|
||
|
||
:build | ||
call build | ||
pause | ||
goto end | ||
|
||
|
||
:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
if .%1.==.. build Build | ||
msbuild /t:%1 | ||
if "%~1"=="" build Build | ||
msbuild /t:%~1 |