diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-14 23:50:14 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-14 23:50:14 +1200 |
commit | 9a9c0463fe1f28187b783c9cc87c28671a80648c (patch) | |
tree | 00049552f80783c94efda75449b2a43dd4ed4664 /Makefile | |
parent | Test for executable not extension in install (diff) | |
download | dotfiles-9a9c0463fe1f28187b783c9cc87c28671a80648c.tar.gz dotfiles-9a9c0463fe1f28187b783c9cc87c28671a80648c.zip |
Simplify recipe for install-vim-plugins a lot
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 5 insertions, 18 deletions
@@ -308,24 +308,11 @@ install-gvim-config : install -pm 0644 -- vim/gvimrc "$(HOME)"/.gvimrc install-vim-plugins : install-vim-config - install -m 0755 -d -- "$(HOME)"/.vim/bundle - find vim/bundle -name .git -prune -o \ - \( -type d -print \) | \ - while IFS= read -r dir ; do \ - install -m 0755 -d -- \ - "$$dir" "$(HOME)"/.vim/"$${dir#vim/}" ; \ - done - find vim/bundle -name .git -prune -o \ - \( -type f ! -name '.git*' -print \) | \ - while IFS= read -r file ; do \ - install -pm 0644 -- \ - "$$file" "$(HOME)"/.vim/"$${file#vim/}" ; \ - done - for dir in vim/after/* ; do \ - install -m 0755 -d -- "$(HOME)"/.vim/after/"$${dir##*/}" ; \ - install -pm 0644 -- "$$dir"/* \ - "$(HOME)"/.vim/after/"$${dir##*/}" ; \ - done + find vim/after vim/bundle -name .git -prune -o \ + -type d -exec sh -c 'install -m 0755 -d -- \ + "$(HOME)"/.vim/"$${1#vim/}"' _ {} \; -o \ + -type f -exec sh -c 'install -m 0644 -- \ + "$$1" "$(HOME)"/.vim/"$${1#vim/}"' _ {} \; install-vim-pathogen : install-vim-plugins install -m 0755 -d -- "$(HOME)"/.vim/autoload |