forked from locutusjs/locutus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (42 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
setup:
git pull && \
cd _octopress && \
bundle exec rake setup_github_pages\[[email protected]:kvz/phpjs.git\] && \
cd .. ; \
test:
#node tests/cli.js --debug --abort # To abort at first failure
cd tests && npm install
node tests/cli.js --debug
hook:
mkdir -p ~/.gittemplate/hooks
curl https://raw.github.com/kvz/ochtra/master/pre-commit -o ~/.gittemplate/hooks/pre-commit
chmod u+x ~/.gittemplate/hooks/pre-commit
git config --global init.templatedir '~/.gittemplate'
rm .git/hooks/pre-commit || true
git init
site:
git pull && \
cd _octopress && \
bundle install && \
npm install && \
bundle exec rake integrate && \
bundle exec rake build && \
bundle exec rake generate && \
bundle exec rake deploy ; \
cd .. ; \
git add . ; \
git commit -am "Update site" ; \
git push origin master
site-clean:
cd _octopress && \
git clean -fd ; \
git reset --hard ; \
bundle exec rake clean ; \
cd ..
site-preview:
cd _octopress && \
bundle exec rake build && \
bundle exec rake generate && \
bundle exec rake preview ; \
cd ..
.PHONY: site%