replace deploy script w/ Makefile because i'm cool

main
anna 3 years ago
parent f81537ff7e
commit 38542c6d23
Signed by: fef
GPG Key ID: EC22E476DC2D3D84

@ -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/
- Gemfile
- Gemfile.lock
- deploy.sh
- Makefile
- README.md
- LICENSE

@ -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…
Cancel
Save