Created
January 28, 2015 01:38
-
-
Save ygmpkk/f4348c80de34955fe488 to your computer and use it in GitHub Desktop.
批量编译gitbook和hg pull & update
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
all: | |
find . -name '[sS]_[mM]_*' -depth 1 -exec gitbook build {} -o dist/{} \; | |
dirs = $(shell for file in `find . -name '[sS]_[mM]_*' -depth 1`;do echo $$file; done) | |
one: | |
@$(foreach i, $(dirs), cd $(i) && hg pull -u && cd ..;) | |
clean: | |
rm -rf ./dist/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment