Commit f61ac981 authored by PoroCYon's avatar PoroCYon

misc tweaks

parent bc7637bd
......@@ -41,12 +41,12 @@ DATERFC822:=$(shell LC_TIME='C' date -u '+%c')
mkdir -p "$@"
obj/postlist.html: src/blog/postdb.tsv obj/
< "$<" $(AWK) -F '\t' -f src/blog/mkpostlist.awk > "$@"
tac "$<" | $(AWK) -F '\t' -f src/blog/mkpostlist.awk > "$@"
obj/%.xml.pre: tpl/%.xml.pre obj/
< "$<" sed -E -e 's/daterfc3339/$(DATERFC3339)/g' -e 's/daterfc822/$(DATERFC822) +0000/g' > "$@"
obj/%.list.xml: src/blog/mk%list.awk src/blog/postdb.tsv obj/
< "src/blog/postdb.tsv" $(AWK) -F '\t' -f "$<" > "$@"
tac "src/blog/postdb.tsv" | $(AWK) -F '\t' -f "$<" > "$@"
out/feed/%.xml: obj/%.xml.pre obj/%.list.xml tpl/%.xml.post
@if ! [ -d "$(dir $@)" ]; then mkdir -p "$(dir $@)"; fi
cat $^ > "$@"
......@@ -83,3 +83,5 @@ blogpost:
.PHONY: default all clean distclean install test
.PRECIOUS: obj/ out/ out/stc/
{
print "<a href=\"/blog/post/" $1 ".html\">" $3 "</a> (" $2 ")"
print "<a href=\"/blog/post/" $1 ".html\">" $3 "</a> (" $2 ") <br />"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment