Permalink
Browse files

Rakefile: tweaks to get vimscriptuploader.rb working

Through experimentation, I've found that the way to get
vimscriptuploader.rb working is to:

  - pass upload credentials in via a config file found at
    ~/.vim_org.yml
  - pass the release notes in via a file pointed at by the
    --message-file option
  - pass all other options in via arguments
  - pass in an empty YAML file to keep it from barfing

Signed-off-by: Wincent Colaiuta <win@wincent.com>
  • Loading branch information...
1 parent c0eda02 commit b47221fb41922260b95d50303ccf5ddd7180895f @wincent committed Mar 27, 2011
Showing with 9 additions and 8 deletions.
  1. +0 −1 .gitignore
  2. +2 −0 .vim_org.yml
  3. +7 −7 Rakefile
View
@@ -1,3 +1,2 @@
.release-notes.txt
-.vim_org.yml
command-t.recipe
View
@@ -0,0 +1,2 @@
+--- {}
+
View
@@ -146,13 +146,13 @@ namespace :upload do
desc 'Upload current vimball to www.vim.org'
task :vim => [:check_bundler, :vimball] do
prepare_release_notes
- conf = {
- :file => "command-t-#{version}.vba",
- :message => read_release_notes.chomp,
- :version => version
- }
- File.open('.vim_org.yml', 'w') { |f| f.print conf.to_yaml }
- sh "vendor/vimscriptuploader/vimscriptuploader.rb --id 3025 --config ~/.vim_org.yml .vim_org.yml"
+ sh "vendor/vimscriptuploader/vimscriptuploader.rb \
+ --id 3025 \
+ --file command-t-#{version}.vba \
+ --message-file .release-notes.txt \
+ --version #{version} \
+ --config ~/.vim_org.yml \
+ .vim_org.yml"
end
desc 'Upload current vimball everywhere'

0 comments on commit b47221f

Please sign in to comment.