1
0
Fork 0
blog.kempkens.io/Makefile

32 lines
1.2 KiB
Makefile
Raw Normal View History

2015-01-10 18:40:00 +00:00
all: compile compress upload superfeedr
2014-08-13 19:14:35 +00:00
2015-01-11 19:35:53 +00:00
compile: clean
2014-08-13 19:14:35 +00:00
@echo "=== Generating static files"
@bundle exec jekyll build --lsi
2014-12-24 22:28:09 +00:00
@echo "Done."
2014-08-13 19:14:35 +00:00
2016-02-29 13:54:13 +00:00
compress: compile
2015-01-10 18:40:00 +00:00
@echo "=== Compressing generated files"
2015-01-25 22:24:44 +00:00
@find ./_site -type f | xargs zopfli --gzip --i30
2016-02-29 13:54:13 +00:00
@find ./_site -type f ! -name "*.gz" | xargs -I {} bro --quality 11 --input {} --output {}.br
@find ./_site -type f -name "*.br" | xargs chmod 644
2015-01-10 18:40:00 +00:00
@echo "Done."
2014-08-13 19:14:35 +00:00
upload:
@echo "=== Syncing files"
2015-07-13 21:20:14 +00:00
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ kempkens.io:/iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/blog
2014-12-24 22:28:09 +00:00
@echo "Done."
2014-08-13 19:14:35 +00:00
@echo "=== Changing permissions"
2015-07-13 21:20:14 +00:00
@ssh kempkens.io chmod 755 /iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/blog
@ssh kempkens.io find /iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/blog -type d -exec chmod 755 {} +
2014-12-24 22:28:09 +00:00
@echo "Done."
2014-12-24 21:52:49 +00:00
superfeedr:
2014-12-24 22:28:09 +00:00
@echo "=== Notifying Superfeedr"
@curl -X POST https://kempkens.superfeedr.com -d "hub.mode=publish" -d "hub.url=https://blog.kempkens.io/feed.xml"
2015-01-01 19:51:56 +00:00
@curl -X POST https://kempkens.superfeedr.com -d "hub.mode=publish" -d "hub.url=https://blog.kempkens.io/feed-with-links.xml"
2014-12-24 22:28:09 +00:00
@echo "Done."
2015-01-11 19:35:53 +00:00
clean:
@rm -rf ./_site