function CopyWsp($souceWspFile)
{
	Write-Host ("File {0} copieng ..." -f $souceWspFile)
	cp $souceWspFile "$execFolder\..\bin"
}

cls
$execFolder = $(Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)

$SOURCE_ROOT = "C:\projects\aborovtsov\SPOKPR"

$WSP_FILE_COLLECTION = @(
	"$SOURCE_ROOT\SPOKPR\bin\Debug\SPOKPR.wsp",
	"$SOURCE_ROOT\SPOKPR.UI.CustomAction\bin\Debug\SPOKPR.UI.CustomAction.wsp",
	"$SOURCE_ROOT\SPOKPR.Definition\bin\Debug\SPOKPR.Definition.wsp",
	"$SOURCE_ROOT\SPOKPR.EventReceiver\bin\Debug\SPOKPR.EventReceiver.wsp",
	"$SOURCE_ROOT\SPOKPR.UI\bin\Debug\SPOKPR.UI.wsp",
	"$SOURCE_ROOT\SPOKPR.UI.WP\bin\Debug\SPOKPR.UI.WP.wsp"
	)

foreach ($wspFile in $WSP_FILE_COLLECTION)
{
	CopyWsp $wspFile
}


Write-Host "Complited!" -ForegroundColor Green
$null = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")