diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-18 03:16:51 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-18 13:19:13 -0700 |
commit | ebcbbc995a86698c29ee4784abb540bf5a872945 (patch) | |
tree | 04481e752bfc998d23a693c6b4c642806c8b9b43 /GNUmakefile | |
parent | 5af05213b6629b2d61435d10101c68305608c0d2 (diff) | |
download | unicorn-ebcbbc995a86698c29ee4784abb540bf5a872945.tar.gz |
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!
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 14 |
1 files changed, 13 insertions, 1 deletions
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 = <link rel="alternate" title="Atom feed" href="$(1)" \ + type="application/atom+xml"/> + # 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!("</title>",%q{\&$(call atom,$(cgit_atom))})' \ + doc/ChangeLog.html + $(ruby) -i -p -e \ + '$$_.gsub!("</title>",%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 |