forked from psake/psake
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added -help switch to psake.ps1 instead of psake-help.ps1 script
Simplificated psake.cmd because of that (also removed some ifs that detected if help should be displayed, because they for example make it impossible to call task with name "help")
- Loading branch information
whut
committed
Nov 5, 2011
1 parent
391cf6f
commit bca24cc
Showing
3 changed files
with
16 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,15 +1,11 @@ | ||
@echo off | ||
|
||
SET DIR=%~dp0% | ||
|
||
if '%1'=='/?' goto usage | ||
if '%1'=='-?' goto usage | ||
if '%1'=='?' goto usage | ||
if '%1'=='/help' goto usage | ||
if '%1'=='help' goto usage | ||
|
||
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%psake.ps1' %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }" | ||
if '%1'=='/?' goto help | ||
if '%1'=='-help' goto help | ||
if '%1'=='-h' goto help | ||
|
||
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }" | ||
goto :eof | ||
:usage | ||
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%DIR%psake-help.ps1'" | ||
|
||
:help | ||
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' -help" |
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