Improve the way submodules are updated [Close #153]
Also updated all plugins to their latest master versions.
This commit is contained in:
parent
d49fc4cbe9
commit
1f0693ce1d
@ -56,7 +56,7 @@ Upgrading is easy.
|
|||||||
```bash
|
```bash
|
||||||
cd ~/.yadr
|
cd ~/.yadr
|
||||||
git pull origin master
|
git pull origin master
|
||||||
rake install
|
rake update
|
||||||
```
|
```
|
||||||
|
|
||||||
# What's included, and how to customize?
|
# 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
|
yav -u https://github.com/airblade/vim-rooter
|
||||||
|
|
||||||
You can update all the plugins easily:
|
|
||||||
|
|
||||||
yuv
|
|
||||||
|
|
||||||
Delete a plugin (Coming Soon)
|
Delete a plugin (Coming Soon)
|
||||||
|
|
||||||
ydv -p airblade-vim-rooter
|
ydv -p airblade-vim-rooter
|
||||||
|
14
Rakefile
14
Rakefile
@ -30,12 +30,22 @@ task :install => [:submodules] do
|
|||||||
success_msg("installed")
|
success_msg("installed")
|
||||||
end
|
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."
|
desc "Init and update submodules."
|
||||||
task :submodules do
|
task :submodules do
|
||||||
puts "======================================================"
|
puts "======================================================"
|
||||||
puts "Downloading YADR submodules...please wait"
|
puts "Downloading YADR submodules...please wait"
|
||||||
puts "======================================================"
|
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
|
puts
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -45,7 +55,7 @@ task :default => 'install'
|
|||||||
private
|
private
|
||||||
def run(cmd)
|
def run(cmd)
|
||||||
puts
|
puts
|
||||||
puts "[Installing] #{cmd}"
|
puts "[Running] #{cmd}"
|
||||||
`#{cmd}` unless ENV['DEBUG']
|
`#{cmd}` unless ENV['DEBUG']
|
||||||
end
|
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
|
|
@ -1 +1 @@
|
|||||||
Subproject commit 5f8301dcc6e682331fcd182e511df5324135e3c6
|
Subproject commit 0ae42e82bf8a0efd1240d078461203bab16a9a2b
|
@ -1 +1 @@
|
|||||||
Subproject commit 6963a45738fbeebb5ca308eafc5fb79dbbae1080
|
Subproject commit 8fd9d9697c98e680be05ee33c512d3b69ec007c7
|
@ -1 +1 @@
|
|||||||
Subproject commit d605010cab695dca64c5cd9bf8bbcc8db9864815
|
Subproject commit 0223dcdf0f4d3cb2b811a10c3673c0832b337415
|
@ -1 +1 @@
|
|||||||
Subproject commit 7f96041b163c6924bffd7de2953f98e0944187f2
|
Subproject commit b1c30e017ef5c703e36ca7a79e102507a042b5a5
|
@ -1 +1 @@
|
|||||||
Subproject commit d6dcb9b0fb5beac9e84cfb84c1917b7e0df5850f
|
Subproject commit 089506ed89da1849485fdfcca002a42111759fab
|
@ -1 +1 @@
|
|||||||
Subproject commit 3c6182371db8e8ede3789d21b52386569eda2208
|
Subproject commit be5842a376f16c16c5dc4cc1879d7168a074f7de
|
@ -1 +1 @@
|
|||||||
Subproject commit 2fee7677d5d46419570cd9760c58192dfba68113
|
Subproject commit 568ef5fd25468a58723b50cf40a48c5dcb46c802
|
@ -1 +1 @@
|
|||||||
Subproject commit a1433c485eb254838c1db52e087d5ec4d1e77cfd
|
Subproject commit bf79e223aefe0665bcc62b5dcc4c2c23c6f23fc5
|
@ -1 +1 @@
|
|||||||
Subproject commit 930953a573939734fb9f65c7acc979f4351b3fa6
|
Subproject commit 2e7d73305b70a456abb20b1754e094cccfefa3d3
|
@ -1 +1 @@
|
|||||||
Subproject commit 7571fd9cae40e231039550604d1f567827714612
|
Subproject commit fa8770161f9dafe40ae08d4a8485f2a2452ff200
|
@ -1 +1 @@
|
|||||||
Subproject commit 011474a458d9dbf020b52c844fbb8aef9518ed7a
|
Subproject commit ef6b4443d7bf1f3194692272f54c50ee4c61e400
|
@ -1 +1 @@
|
|||||||
Subproject commit 6f2cfeaa86e24bb3faa4b204f0a8ea6b3bdb5e1b
|
Subproject commit 992c21804d003faffcaec0014a5f61e2ce76f57e
|
@ -1 +1 @@
|
|||||||
Subproject commit cff78c3ab4605d490e6be8d8af02f1e7efd25c95
|
Subproject commit 31dead6d8088dc7073d0e2645517ebc68d6de06b
|
@ -1 +1 @@
|
|||||||
Subproject commit 2d6558125cce7fcf1740d58870bda04eb66d3851
|
Subproject commit 7d79b45e55d5e0c3f856269362e664258528e4cb
|
@ -1 +1 @@
|
|||||||
Subproject commit 4a90d71c6611e46d05eb110bea8edde983331929
|
Subproject commit f3e4253faf5ff344fcdfc74c590f3b6816e7255b
|
@ -5,7 +5,8 @@ yadr=$HOME/.yadr
|
|||||||
|
|
||||||
# YADR support
|
# YADR support
|
||||||
alias yav='yadr vim-add-plugin'
|
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'
|
alias yip='yadr init-plugins'
|
||||||
|
|
||||||
# PS
|
# PS
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit be0e4245a6b693a0e0fd5cfa2cad8add503442ef
|
Subproject commit bb597ae22d69fc10fefdaebb31073a09c3e6830f
|
Loading…
Reference in New Issue
Block a user