Permalink
Browse files

I decided to remove the "package" folder since GitHub automatically p…

…ackages up the source anyway
  • Loading branch information...
1 parent 2fcedcc commit 1ed02861925f9d2fb6313a37799321d320adc8d7 @jmatos jmatos committed Oct 4, 2009
View
Binary file not shown.
View
@@ -1,4 +0,0 @@
-.git
-package
-images\psake.pdn
-images\SakeBottle.jpg
View
Binary file not shown.
View
@@ -1,3 +0,0 @@
-include 'psake_packager.ps1'
-
-task default -depends validate-psake,package-psake,deploy-psake
View
@@ -1,42 +0,0 @@
-task validate-psake -description 'Run example psake scripts to validate behavior' {
- trap {
- Set-Location 'package'
- throw;
- }
- Set-Location '..\'
- .\psake-buildTester.ps1
- Set-Location 'package'
-}
-
-task package-psake -description 'Packages all psake scripts, docs, and example scripts into a zip file' -depends update-psake-version {
- $version = (cat Version.inc)
- $zipFile = "psake v$version.zip"
-
- if (test-path $zipFile) {
- Remove-Item $zipFile
- }
-
- .\7za a "$zipFile" ..\ -r "-x@Excluded.txt"
-}
-
-task update-psake-version -description 'Updates version references in psake script' {
- $previousVersion = New-Object System.Version (cat Version.inc)
- $newVersion = New-Object System.Version $previousVersion.Major,($previousVersion.Minor+1)
-
- $first = $true
- $outputFile = '..\psake.ps1'
- foreach ($line in (cat ..\psake.ps1)) {
- $fileLine = [regex]::Replace($line, $previousVersion, $newVersion);
- if ($first) {
- $fileLine | Out-File $outputFile
- $first = $false
- } else {
- $fileLine | Out-File $outputFile -append
- }
- }
-
- $newVersion.ToString() | Out-File Version.inc
-}
-
-task deploy-psake -description 'Deploys to code.google.com/p/psake' {
-}

0 comments on commit 1ed0286

Please sign in to comment.