Skip to content

Instantly share code, notes, and snippets.

@ygmpkk
Created January 28, 2015 01:38
Show Gist options
  • Save ygmpkk/f4348c80de34955fe488 to your computer and use it in GitHub Desktop.
Save ygmpkk/f4348c80de34955fe488 to your computer and use it in GitHub Desktop.
批量编译gitbook和hg pull & update
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