Created
April 2, 2014 14:19
-
-
Save benpickles/9935108 to your computer and use it in GitHub Desktop.
Update `~/.vim/bundle`s with the power of make
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BUNDLES = $(shell ls bundle) | |
BUNDLE_TARGETS = $(addprefix update_, $(BUNDLES)) | |
list: | |
@for BUNDLE in $(BUNDLES); do echo $$BUNDLE; done | |
update: $(BUNDLE_TARGETS) | |
update_%: | |
cd bundle/$(*F) && git pull | |
.PHONEY: list update $(BUNDLE_TARGETS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment