diff options
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 |