aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-14 23:50:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-14 23:50:14 +1200
commit9a9c0463fe1f28187b783c9cc87c28671a80648c (patch)
tree00049552f80783c94efda75449b2a43dd4ed4664 /Makefile
parentTest for executable not extension in install (diff)
downloaddotfiles-9a9c0463fe1f28187b783c9cc87c28671a80648c.tar.gz
dotfiles-9a9c0463fe1f28187b783c9cc87c28671a80648c.zip
Simplify recipe for install-vim-plugins a lot
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 5 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index f7776b96..3e08bb0a 100644
--- a/Makefile
+++ b/Makefile
@@ -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