Skip to content

Instantly share code, notes, and snippets.

@mhinze
Created February 22, 2013 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhinze/5013429 to your computer and use it in GitHub Desktop.
Save mhinze/5013429 to your computer and use it in GitHub Desktop.
Updated build.cmd psake launcher ... useful for pulling down solution package (like psake) .. since later this script actually invokes psake.
@echo off
rem source arg below can be semicolon-delim ie '-source "https://nuget.org/api/v2/;\\server\share"'
.\src\.nuget\nuget.exe install src\.nuget\packages.config -source "" -RequireConsent -o "src\packages"
if '%1'=='/?' goto help
if '%1'=='-help' goto help
if '%1'=='-h' goto help
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\src\packages\psake.4.2.0.1\tools\psake.ps1' %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"
goto :eof
:help
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\src\packages\psake.4.2.0.1\tools\psake.ps1' -help"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment