Improve the way submodules are updated [Close #153]
Also updated all plugins to their latest master versions.
This commit is contained in:
@@ -56,7 +56,7 @@ Upgrading is easy.
|
||||
```bash
|
||||
cd ~/.yadr
|
||||
git pull origin master
|
||||
rake install
|
||||
rake update
|
||||
```
|
||||
|
||||
# What's included, and how to customize?
|
||||
@@ -455,10 +455,6 @@ YADR comes with a dead simple plugin manager that just uses git submodules, with
|
||||
|
||||
yav -u https://github.com/airblade/vim-rooter
|
||||
|
||||
You can update all the plugins easily:
|
||||
|
||||
yuv
|
||||
|
||||
Delete a plugin (Coming Soon)
|
||||
|
||||
ydv -p airblade-vim-rooter
|
||||
|
||||
14
Rakefile
14
Rakefile
@@ -30,12 +30,22 @@ task :install => [:submodules] do
|
||||
success_msg("installed")
|
||||
end
|
||||
|
||||
task :update => [:install] do
|
||||
#TODO: for now, we do the same as install. But it would be nice
|
||||
#not to clobber zsh files
|
||||
end
|
||||
|
||||
desc "Init and update submodules."
|
||||
task :submodules do
|
||||
puts "======================================================"
|
||||
puts "Downloading YADR submodules...please wait"
|
||||
puts "======================================================"
|
||||
sh('git submodule update --init --recursive')
|
||||
|
||||
run %{
|
||||
cd $HOME/.yadr
|
||||
git submodule foreach 'git fetch origin; git checkout master; git reset --hard origin/master; git submodule update --recursive; git clean -dfx'
|
||||
git clean -dfx
|
||||
}
|
||||
puts
|
||||
end
|
||||
|
||||
@@ -45,7 +55,7 @@ task :default => 'install'
|
||||
private
|
||||
def run(cmd)
|
||||
puts
|
||||
puts "[Installing] #{cmd}"
|
||||
puts "[Running] #{cmd}"
|
||||
`#{cmd}` unless ENV['DEBUG']
|
||||
end
|
||||
|
||||
|
||||
12
bin/yadr/yadr-update-plugins
Executable file
12
bin/yadr/yadr-update-plugins
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env ruby
|
||||
require File.join(File.dirname(__FILE__), 'default_libs')
|
||||
|
||||
GitStyleBinary.command do
|
||||
version "yadr-update-plugins 1.0"
|
||||
short_desc "Update all plugins to latest versions from github"
|
||||
|
||||
run do |command|
|
||||
`cd $HOME/.yadr && rake submodules`
|
||||
end
|
||||
|
||||
end
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env ruby
|
||||
require File.join(File.dirname(__FILE__), 'default_libs')
|
||||
|
||||
GitStyleBinary.command do
|
||||
version "yadr-vim-update-plugins 1.0"
|
||||
short_desc "Update all vim plugins to latest versions from github"
|
||||
|
||||
run do |command|
|
||||
`cd "#{$yadr}" && git submodule foreach git pull origin master`
|
||||
end
|
||||
|
||||
end
|
||||
Submodule vim/bundle/AndrewRadev-splitjoin updated: 5f8301dcc6...0ae42e82bf
Submodule vim/bundle/Shougo-neocomplcache updated: 6963a45738...8fd9d9697c
Submodule vim/bundle/groenewege-vim-less updated: d605010cab...0223dcdf0f
Submodule vim/bundle/honza-snipmate-snippets updated: 7f96041b16...b1c30e017e
Submodule vim/bundle/kchmck-vim-coffee-script updated: d6dcb9b0fb...089506ed89
Submodule vim/bundle/kien-ctrlp updated: 3c6182371d...be5842a376
Submodule vim/bundle/majutsushi-tagbar updated: 2fee7677d5...568ef5fd25
Submodule vim/bundle/scrooloose-nerdtree updated: a1433c485e...bf79e223ae
Submodule vim/bundle/scrooloose-syntastic updated: 930953a573...2e7d73305b
Submodule vim/bundle/skwp-vim-powerline updated: 7571fd9cae...fa8770161f
Submodule vim/bundle/tomtom-tcomment_vim updated: 011474a458...ef6b4443d7
Submodule vim/bundle/tomtom-tlib_vim updated: 6f2cfeaa86...992c21804d
Submodule vim/bundle/tpope-vim-fugitive updated: cff78c3ab4...31dead6d80
Submodule vim/bundle/tpope-vim-rails updated: 2d6558125c...7d79b45e55
Submodule vim/bundle/vim-ruby-vim-ruby updated: 4a90d71c66...f3e4253faf
@@ -5,7 +5,8 @@ yadr=$HOME/.yadr
|
||||
|
||||
# YADR support
|
||||
alias yav='yadr vim-add-plugin'
|
||||
alias yuv='yadr vim-update-plugins'
|
||||
alias yuv='yadr update-plugins' #FIXME: backwards compatibility. Kill me after Jan 1, 2013
|
||||
alias yup='yadr update-plugins'
|
||||
alias yip='yadr init-plugins'
|
||||
|
||||
# PS
|
||||
|
||||
Submodule zsh/prezto updated: be0e4245a6...bb597ae22d
Reference in New Issue
Block a user