From ebcbbc995a86698c29ee4784abb540bf5a872945 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 18 Sep 2009 03:16:51 -0700 Subject: html: add Atom feeds The ChangeLog feed points to the cgit repository viewer and the NEWS one is its own feed of tags. Web 2.0 here we come! --- GNUmakefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index d21d974..b6f340c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -141,7 +141,7 @@ man: $(RM) $@+ NEWS: GIT-VERSION-FILE - $(rake) -s history > $@+ + $(rake) -s news_rdoc > $@+ mv $@+ $@ ChangeLog: GIT-VERSION-FILE @@ -150,6 +150,11 @@ ChangeLog: GIT-VERSION-FILE git log | sed -e 's/^/ /' >> $@+ mv $@+ $@ +news_atom := http://unicorn.bogomips.org/NEWS.atom.xml +cgit_atom := http://git.bogomips.org/cgit/unicorn.git/atom/?h=master +atom = + # using rdoc 2.4.1+ doc: .document $(ext)/unicorn_http.c NEWS ChangeLog > unicorn.1 && > unicorn_rails.1 @@ -159,6 +164,13 @@ doc: .document $(ext)/unicorn_http.c NEWS ChangeLog cd doc && for i in unicorn unicorn_rails; do \ sed -e '/"documentation">/r man1/'$$i'.1.html' \ < $${i}_1.html > tmp && mv tmp $${i}_1.html; done + $(ruby) -i -p -e \ + '$$_.gsub!("",%q{\&$(call atom,$(cgit_atom))})' \ + doc/ChangeLog.html + $(ruby) -i -p -e \ + '$$_.gsub!("",%q{\&$(call atom,$(news_atom))})' \ + doc/NEWS.html doc/README.html + $(rake) -s news_atom > doc/NEWS.atom.xml cd doc && ln README.html tmp && mv tmp index.html $(RM) unicorn.1 unicorn_rails.1 -- cgit v1.2.3-24-ge0c7