diff options
Diffstat (limited to 'www/Makefile')
-rw-r--r-- | www/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/www/Makefile b/www/Makefile index 699abb2..d54081b 100644 --- a/www/Makefile +++ b/www/Makefile | |||
@@ -4,10 +4,15 @@ ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) | |||
4 | # build html files for public/ | 4 | # build html files for public/ |
5 | build: | 5 | build: |
6 | cd $(ROOT_DIR) | 6 | cd $(ROOT_DIR) |
7 | @input_dir=~/log/public \ | 7 | export input_dir=~/log/public |
8 | output_dir=/srv/http \ | 8 | export output_dir=/srv/http |
9 | scripts/build.sh | 9 | @scripts/build.sh |
10 | 10 | ||
11 | # Migrage frontmatter from '---' to HTML comment '<!-- -->' | 11 | # Migrage frontmatter from '---' to HTML comment '<!-- -->' |
12 | frontmatter: | 12 | frontmatter: |
13 | find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---/<!--/; 1!s/^---/-->/; 1!b}; /^---/ {1b frontmatter}' | 13 | find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---/<!--/; 1!s/^---/-->/; 1!b}; /^---/ {1b frontmatter}' |
14 | |||
15 | rss: | ||
16 | cd /srv/rss | ||
17 | export LIST=~/log/public/links/rss.list | ||
18 | $(ROOT_DIR)/scripts/update-feeds.sh | ||