Browse files

Will properly create gem for RavenDB

  • Loading branch information...
1 parent 62ef2b6 commit 87f49b4c281681b996c89bcb86a39f3a0a5e4d24 @ayende ayende committed Aug 6, 2010
Showing with 14 additions and 6 deletions.
  1. +12 −4 default.ps1
  2. +1 −1 psake.ps1
  3. +1 −1 ravendb.gemspec
View
16 default.ps1
@@ -27,7 +27,11 @@ task Clean {
}
task Init -depends Verify40, Clean {
-
+
+ if($env:buildlabel -eq $null) {
+ $env:buildlabel = "13"
+ }
+
$asmInfos = ls -path $base_dir -include AssemblyInfo.cs -recurse |
Where { $_ -notmatch "SharedLibs" } |
Where { $_ -notmatch "Tools" }
@@ -210,11 +214,15 @@ task CopyDocFiles {
cp $base_dir\acknowledgements.txt $build_dir\Output\acknowledgements.txt
}
-task CreateGem -depends Compile, CopyGems {
+task CreateGem {
exec {
$currentDate = [System.DateTime]::Today.ToString("yyyyMMdd")
- Write-Host "$version.$env:buildlabel.$currentDate" > $base_dir\VERSION
- #& "$tools_dir\IronRuby\bin\igem.bat" build "$base_dir\ravendb.gemspec"
+ [System.IO.File]::WriteAllText( "$build_dir\Output\VERSION", "$version.$env:buildlabel.$currentDate", [System.Text.Encoding]::ASCII)
+ $old = pwd
+ cd $build_dir\Output
+ del $build_dir\Output\*.gem
+ & "$tools_dir\IronRuby\bin\igem.bat" build "$base_dir\ravendb.gemspec"
+ cd $old
}
}
View
2 psake.ps1
@@ -222,7 +222,7 @@ function Write-Documentation {
function exec([scriptblock]$command, [string]$errorMsg) {
& $command
if ($lastExitCode -ne 0) {
- throw errorMsg
+ throw $errorMsg
}
}
View
2 ravendb.gemspec
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
spec.platform = Gem::Platform::RUBY
spec.name = "ravendb"
spec.version = version
- spec.files = Dir['build/Output/gems/**/*']
+ spec.files = Dir['gems/**/*']
spec.summary = "Raven is an Open Source (with a commercial option) document database for the .NET/Windows platform."
spec.description = <<-EOF
Raven is an Open Source (with a commercial option) document database for the .NET/Windows platform. Raven offers a

0 comments on commit 87f49b4

Please sign in to comment.