replace deploy script w/ Makefile because i'm cool
This commit is contained in:
parent
f81537ff7e
commit
38542c6d23
3 changed files with 19 additions and 11 deletions
18
Makefile
Executable file
18
Makefile
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
JEKYLL ?= bundle exec jekyll
|
||||||
|
WWW_ROOT ?= $(HOME)/pub/www
|
||||||
|
|
||||||
|
BUILD_ROOT = $(PWD)/_site
|
||||||
|
|
||||||
|
site:
|
||||||
|
$(JEKYLL) build
|
||||||
|
|
||||||
|
deploy: site
|
||||||
|
rm -rf $(WWW_ROOT)
|
||||||
|
cp -r $(BUILD_ROOT) $(WWW_ROOT)
|
||||||
|
gzip -9kr $(WWW_ROOT)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(BUILD_ROOT)
|
||||||
|
|
||||||
|
all: site
|
||||||
|
|
|
@ -22,6 +22,6 @@ exclude:
|
||||||
- .gemfiles/
|
- .gemfiles/
|
||||||
- Gemfile
|
- Gemfile
|
||||||
- Gemfile.lock
|
- Gemfile.lock
|
||||||
- deploy.sh
|
- Makefile
|
||||||
- README.md
|
- README.md
|
||||||
- LICENSE
|
- LICENSE
|
||||||
|
|
10
deploy.sh
10
deploy.sh
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
SRC_ROOTDIR="$HOME/src/fef.moe"
|
|
||||||
WEB_ROOTDIR="$HOME/pub/www"
|
|
||||||
|
|
||||||
cd "$SRC_ROOTDIR"
|
|
||||||
jekyll build
|
|
||||||
rm -rf "$WEB_ROOTDIR"
|
|
||||||
cp -r _site "$WEB_ROOTDIR"
|
|
||||||
gzip -9kr "$WEB_ROOTDIR"
|
|
Loading…
Reference in a new issue