Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed support of zip packages.

  • Loading branch information...
commit 48c8b17a3a50a8fb7fdb45eba1fbcd7e82089136 1 parent 03641ac
@nightroman authored
Showing with 9 additions and 23 deletions.
  1. +7 −18 .build.ps1
  2. +2 −5 README.md
View
25 .build.ps1
@@ -46,7 +46,7 @@ task Build {
# Clean all.
task Clean RemoveMarkdownHtml, {
- Remove-Item z, Src\bin, Src\obj, Module\Mdbc.dll, Mdbc.*.zip, *.nupkg -Force -Recurse -ErrorAction 0
+ Remove-Item z, Src\bin, Src\obj, Module\Mdbc.dll, *.nupkg -Force -Recurse -ErrorAction 0
}
# Copy all to the module root directory and then build help.
@@ -58,7 +58,7 @@ task PostBuild {
@{Help=1}
# Build module help by Helps (https://github.com/nightroman/Helps).
-task Help -Incremental @{(Get-Item Src\Commands\*, Module\en-US\Mdbc.dll-Help.ps1) = "$ModuleRoot\en-US\Mdbc.dll-Help.xml"} {
+task Help -Inputs (Get-Item Src\Commands\*, Module\en-US\Mdbc.dll-Help.ps1) -Outputs "$ModuleRoot\en-US\Mdbc.dll-Help.xml" {
. Helps.ps1
Convert-Helps Module\en-US\Mdbc.dll-Help.ps1 $Outputs
}
@@ -84,12 +84,10 @@ task TestHelp Help, TestHelpExample, TestHelpSynopsis
# Copy external scripts from their working location to the project.
# It fails if the scripts are not available.
-task UpdateScript -Partial @{
- { Get-Command Mdbc.ps1, Update-MongoFiles.ps1, Get-MongoFile.ps1 | %{ $_.Definition } } =
- { process{ "Scripts\$(Split-Path -Leaf $_)" } }
-} {
- process{ Copy-Item $_ $2 }
-}
+task UpdateScript -Partial `
+-Inputs {Get-Command Mdbc.ps1, Update-MongoFiles.ps1, Get-MongoFile.ps1 | %{ $_.Definition }} `
+-Outputs {process{ "Scripts\$(Split-Path -Leaf $_)" }} `
+{process{ Copy-Item $_ $2 }}
# Call tests.
task Test {
@@ -124,7 +122,7 @@ task Driver PullDriver, BuildDriver, Build, Test, Clean, CleanDriver
try { Markdown.tasks.ps1 }
catch { task ConvertMarkdown; task RemoveMarkdownHtml }
-# Make the package in z\tools for Zip and NuGet.
+# Make the package in z\tools for NuGet.
task Package ConvertMarkdown, @{UpdateScript=1}, {
Remove-Item [z] -Force -Recurse
$null = mkdir z\tools\Mdbc\en-US, z\tools\Mdbc\Scripts
@@ -158,12 +156,6 @@ task Version {
$script:Version = $matches[1]
}
-# Make zip package.
-task Zip Package, Version, {
- Set-Location z\tools
- exec { & 7z a ..\..\Mdbc.$Version.zip * }
-}
-
# Make NuGet package.
task NuGet Package, Version, {
$text = @'
@@ -192,9 +184,6 @@ It makes MongoDB scripting easy and represents yet another MongoDB shell.
exec { NuGet pack z\Package.nuspec -NoPackageAnalysis }
}
-# Make all packages.
-task Pack Zip, NuGet
-
# Check files.
task CheckFiles {
$Pattern = '\.(cs|csproj|md|ps1|psd1|psm1|ps1xml|sln|txt|xml|gitignore)$'
View
7 README.md
@@ -11,7 +11,7 @@ It makes MongoDB scripting easy and represents yet another MongoDB shell.
**Step 1:** Get and install *Mdbc*:
-An easy way to get and install is the PowerShell module
+An easy way to get and install is the PowerShell tool
[PsGet](https://github.com/psget/psget):
Import-Module PsGet
@@ -22,10 +22,7 @@ Alternatively, to get the package without installation use
NuGet install Mdbc
-Alternatively, manually download and unzip the package from
-[Downloads](https://github.com/nightroman/Mdbc/downloads).
-
-In the last two cases copy the directory *Mdbc* from the package to a
+In the latter case copy the directory *tools\Mdbc* from the package to a
PowerShell module directory, see `$env:PSModulePath`. For example:
C:/Users/.../Documents/WindowsPowerShell/Modules/Mdbc
Please sign in to comment.
Something went wrong with that request. Please try again.