Skip to content

Commit

Permalink
Added some comments to psake.ps1 and psake.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
whut committed Jan 8, 2014
1 parent 80029cf commit 693bb96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions psake.cmd
@@ -1,4 +1,7 @@
@echo off
rem Helper script for those who want to run psake from cmd.exe
rem Example run from cmd.exe:
rem psake "default.ps1" "BuildHelloWord" "4.0"

if '%1'=='/?' goto help
if '%1'=='-help' goto help
Expand Down
6 changes: 4 additions & 2 deletions psake.ps1
@@ -1,5 +1,5 @@
# Helper script for those who want to run psake without importing the module.
# Example:
# Example run from PowerShell:
# .\psake.ps1 "default.ps1" "BuildHelloWord" "4.0"

# Must match parameter definitions for psake.psm1/invoke-psake
Expand Down Expand Up @@ -27,6 +27,8 @@ param(
[Parameter(Position=9, Mandatory=0)]
[string]$scriptPath
)

# setting $scriptPath here, not as default argument, to support calling as "powershell -File psake.ps1"
if (!$scriptPath) {
$scriptPath = $(Split-Path -parent $MyInvocation.MyCommand.path)
}
Expand All @@ -46,4 +48,4 @@ if ($buildPath -and (-not(test-path $buildFile))) {
}
}

invoke-psake $buildFile $taskList $framework $docs $parameters $properties $initialization $nologo
Invoke-psake $buildFile $taskList $framework $docs $parameters $properties $initialization $nologo

0 comments on commit 693bb96

Please sign in to comment.