Skip to content

Commit

Permalink
Rakefile: tweaks to get vimscriptuploader.rb working
Browse files Browse the repository at this point in the history
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
wincent committed Mar 27, 2011
1 parent c0eda02 commit b47221f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.release-notes.txt
.vim_org.yml
command-t.recipe
2 changes: 2 additions & 0 deletions .vim_org.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--- {}

14 changes: 7 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b47221f

Please sign in to comment.