-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
57 lines (41 loc) · 817 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
default: posts
rsync:
rsync -avz _site/ root@ssh.sandradodd.com:/var/www/site/archive/UnschoolingDiscussion/
build:
bundle exec jekyll build
start:
bundle exec jekyll serve
s: start
.ONESHELL:
posts:
rvm `cat .ruby-version` do ruby create-posts.rb
rm -vf _posts/*-1515.html
cache:
rvm `cat .ruby-version` do ruby downloader.rb
.PHONY: cache
clean-cache:
rm -v \
cache/topics.json \
cache/topic-`jq .ygData.lastTopic cache/topics.json`.json
clean:
find _posts -type f -delete
rm -rf _site
stats:
@jq '.ygData.numTopics' cache/topics.json
@ls -1 cache/ | wc -l
@du -shc cache/ | tail -1
edit:
code -n .
e: edit
a: audit
audit:
bundle exec bundle-audit
au: audit-update
audit-update:
bundle exec bundle-audit update
i: install
install:
bundle install
u: update
update:
bundle update