Skip to content

Commit

Permalink
use conque 1.1 (HEAD seems unstable)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Aug 13, 2010
1 parent ef39b4e commit d945734
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Rakefile
Expand Up @@ -9,17 +9,27 @@ end

def vim_plugin_task(name, repo=nil)
cwd = File.expand_path("../", __FILE__)
dir = "tmp/#{name}"
dir = File.expand_path("tmp/#{name}")
subdirs = VIM::Dirs

namespace(name) do
if repo
file dir => "tmp" do
if repo =~ /git$/
sh "git clone #{repo} #{dir}"
elsif repo =~ /download_script/

elsif repo =~ /download_script/ # TODO: this assumes all vimscripts downloads are zips (can be vba or targz)
sh "curl #{repo} > #{dir}.zip"
sh "unzip -o #{dir}.zip -d #{dir}"

elsif repo =~ /tar\.gz$/
filename = File.basename(repo)
dirname = File.basename(filename, '.tar.gz')

sh "curl #{repo} > tmp/#{filename}"
sh "tar zxvf tmp/#{filename}"
sh "mv #{dirname} #{dir}"

else
raise ArgumentError, 'unrecognized source url for plugin'
end
Expand Down Expand Up @@ -71,7 +81,7 @@ end

vim_plugin_task "ack.vim", "http://github.com/mileszs/ack.vim.git"
vim_plugin_task "color-sampler", "http://www.vim.org/scripts/download_script.php?src_id=12179"
vim_plugin_task "conque", "http://github.com/rson/vim-conque.git"
vim_plugin_task "conque", "http://conque.googlecode.com/files/conque_1.1.tar.gz"
vim_plugin_task "fugitive", "http://github.com/tpope/vim-fugitive.git"
vim_plugin_task "haml", "http://github.com/tpope/vim-haml.git"
vim_plugin_task "indent_object", "http://github.com/michaeljsmith/vim-indent-object.git"
Expand Down

0 comments on commit d945734

Please sign in to comment.