-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 1.14 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
cv:
#cd _pandoc; pandoc --output=pubs-tmp.tex --natbib ../_publications-edit-this-one.md
cd _pandoc; python pandoc-latex-postprocessor.py foti_cv.tex foti_cv_shell.tex
#cd _pandoc; python pandoc-latex-postprocessor.py pubs.tex pubs-tmp.tex
#cd _pandoc; python convert-pandoc-refs-to-liquid.py
cd _pandoc; sh compile.bash foti_cv.tex
mv _pandoc/foti_cv.pdf ./
#cd _pandoc; rm -f pubs.tex foti_cv.* *.pyc
website:
cd _pandoc; python convert-pandoc-refs-to-liquid.py
bundle exec jekyll build --verbose
cd _pandoc; python boldify-my-name-site.py
cd _site; mv pubs.html.tmp publications.html
website-drafts:
cd _pandoc; python convert-pandoc-refs-to-liquid.py
bundle exec jekyll build --verbose
build: website
build-drafts: website-drafts
serve: website
bundle exec jekyll serve --verbose --skip-initial-build
serve-drafts: website-drafts
bundle exec jekyll serve --drafts --verbose --skip-initial-build
deploy: website
# assumes that you've already committed new site
git checkout source
git branch -D master &>/dev/null
git checkout -b master
git filter-branch --subdirectory-filter _site/ -f
git push --force origin master
git checkout source