aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-03 11:13:05 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-03 11:13:05 +1300
commit795fd483a0fa2122e05d4f192cce66fd66286924 (patch)
treef0f1bf1c5e28a44f39dd75792c8295b60d54f964 /Makefile
parentNo longer need to ignore dirty files in submods (diff)
downloaddotfiles-795fd483a0fa2122e05d4f192cce66fd66286924.tar.gz
dotfiles-795fd483a0fa2122e05d4f192cce66fd66286924.zip
find(1) commands hard to get right
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 7ce45399..03cbf060 100644
--- a/Makefile
+++ b/Makefile
@@ -113,14 +113,18 @@ install-vim :
install -m 0644 -- vim/after/ftplugin/* "$(HOME)"/.vim/after/ftplugin
install -m 0644 -- vim/after/plugin/* "$(HOME)"/.vim/after/plugin
git submodule update --init
- cd vim && find bundle -type d \( -name .git -prune -o -type d -print \) | \
- while IFS= read -r dir ; do \
- install -m 0755 -d -- "$${dir}" "$(HOME)"/.vim/"$$dir" ; \
- done
- cd vim && find bundle -type f ! -name '.git*' | \
- while IFS= read -r file ; do \
- install -m 0644 -- "$${file}" "$(HOME)"/.vim/"$$file" ; \
- done
+ cd vim && find bundle -name .git -prune -o \
+ \( -type d -print \) | \
+ while IFS= read -r dir ; do \
+ install -m 0755 -d -- \
+ "$$dir" "$(HOME)"/.vim/"$$dir" ; \
+ done
+ cd vim && find bundle -name .git -prune -o \
+ \( -type f ! -name '.git*' -print \) | \
+ while IFS= read -r file ; do \
+ install -m 0644 -- \
+ "$$file" "$(HOME)"/.vim/"$$file" ; \
+ done
rm -f -- "$(HOME)"/.vim/autoload/pathogen.vim
ln -s -- ../bundle/pathogen/autoload/pathogen.vim \
"$(HOME)"/.vim/autoload/pathogen.vim