aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-12-21 14:32:08 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-21 14:32:08 +1300
commitc785a20f302fb51075812fbbc394756f5db766db (patch)
treedeb3ca0d73719bded356bd998b29f23629ec12b9
parentRevert "Delete unused autoload function" (diff)
downloaddotfiles-c785a20f302fb51075812fbbc394756f5db766db.tar.gz
dotfiles-c785a20f302fb51075812fbbc394756f5db766db.zip
Simplify vim/bundle installation commands
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 58993c3a..5eedfacf 100644
--- a/Makefile
+++ b/Makefile
@@ -576,12 +576,12 @@ install-vim-autoload:
cp -p -- vim/autoload/*.vim $(VIMDIR)/autoload
install-vim-bundle: install-vim-config
- find vim/bundle/*/* \
+ cd vim/bundle && find */* \
-type d -exec sh -c \
- 'mkdir -p -- $(VIMDIR)/"$${1#vim/bundle/*/}"' _ {} \;
- find vim/bundle/*/*/* \
+ 'mkdir -p -- $(VIMDIR)/"$${1#*/}"' _ {} \;
+ cd vim/bundle && find */*/* \
-type f -exec sh -c \
- 'cp -p -- "$$1" $(VIMDIR)/"$${1#vim/bundle/*/}"' _ {} \;
+ 'cp -p -- "$$1" $(VIMDIR)/"$${1#*/}"' _ {} \;
$(VIM) -e -u NONE -c 'helptags $(VIMDIR)/doc' -c quit
install-vim-cache: