-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 1.08 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
all: build
hugoinstall:
cd /tmp/ && curl -LO https://github.com/gohugoio/hugo/releases/download/v0.30.2/hugo_0.30.2_Linux-64bit.tar.gz
cd /tmp/ && tar -xvzf /tmp/hugo_* hugo
mkdir -p ~/.bin
cp /tmp/hugo ~/.bin
build-draft:
GIT_COMMIT_SHA=`git rev-parse --verify HEAD` GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD` hugo --buildDrafts --cleanDestinationDir
build:
GIT_COMMIT_SHA=`git rev-parse --verify HEAD` GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD` hugo --cleanDestinationDir
serve:
hugo gen chromastyles -v --style=monokai > themes/beautifulhugo/static/css/chroma_syntax.css
GIT_COMMIT_SHA=`git rev-parse --verify HEAD` GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD` hugo serve -v --buildDrafts
serve-debug:
hugo serve -v --buildDrafts --renderToDisk
publishtest: build
git diff --quiet --exit-code && rsync -avrn --delete public/ [email protected]:/datas/vol3/w4a153382/var/www/blog.jesuislibre.org/htdocs/
publish: build
git diff --quiet --exit-code && rsync -avr --delete public/ [email protected]:/datas/vol3/w4a153382/var/www/blog.jesuislibre.org/htdocs/