update for 3.0.0

Fri, 16 Aug 2019 11:52:15 +0200

author
David Demelier <markand@malikania.fr>
date
Fri, 16 Aug 2019 11:52:15 +0200
changeset 23
3e21222edcfd
parent 22
e49c41217e6e
child 24
f92079906943

update for 3.0.0

.hgignore file | annotate | diff | comparison | revisions
Makefile file | annotate | diff | comparison | revisions
index.md file | annotate | diff | comparison | revisions
--- a/.hgignore	Tue Jul 16 20:31:08 2019 +0200
+++ b/.hgignore	Fri Aug 16 11:52:15 2019 +0200
@@ -1,1 +1,3 @@
 \.html$
+\.pdf$
+\.tar\.xz$
--- a/Makefile	Tue Jul 16 20:31:08 2019 +0200
+++ b/Makefile	Fri Aug 16 11:52:15 2019 +0200
@@ -1,5 +1,5 @@
 #
-# Makefile -- basic makefile for irccd-www
+# Makefile -- basic BSD Makefile for irccd-www
 #
 # Copyright (c) 2013-2019 David Demelier <markand@malikania.fr>
 #
@@ -20,18 +20,70 @@
                 versioning.html
 PANDOC=         pandoc
 PANDOC_FLAGS=   -f markdown -t html5 --template templates/template.html
+MANDOC=         mandoc
+MANDOC_PDF=     -T pdf
+MANDOC_HTML=    -T html -O man=%N.html
 RM=             rm -f
+VERSION=        3.0.0
+SOURCE=         irccd-${VERSION}.tar.xz
+MANSRCS=        irccd-api.7 \
+                irccd-ipc.7 \
+                irccd-templates.7 \
+                irccd-test.1 \
+                irccd.1 \
+                irccd.conf.5 \
+                irccdctl.1 \
+                irccdctl.conf.5
+PLUGINS=        ask \
+                auth \
+                hangman \
+                history \
+                joke \
+                links \
+                logger \
+                plugin \
+                roulette \
+                tictactoe
 
-all: ${FILES}
+.SUFFIXES: .html .md
+
+all: site man
 
 ${FILES}: templates/template.html
 
+${SOURCE}:
+	@wget -q http://releases.malikania.fr/irccd/${VERSION}/$@ -O $@
+
+site: ${FILES}
+
+man: ${SOURCE}
+	@tar xf ${SOURCE}
+.for m in ${MANSRCS}
+	@echo GEN ${m:C/[0-9]$/pdf/:_}
+	@${MANDOC} ${MANDOC_PDF} irccd-${VERSION}/man/$m > ${_}
+.endfor
+.for p in ${PLUGINS}
+	@echo GEN irccd-plugin-${p}.pdf
+	@${MANDOC} ${MANDOC_PDF} irccd-${VERSION}/plugins/${p}/${p}.7 > irccd-plugin-${p}.pdf
+.endfor
+.for m in ${MANSRCS}
+	@echo GEN ${m:C/[0-9]$/html/:_}
+	@${MANDOC} ${MANDOC_HTML} irccd-${VERSION}/man/$m > ${_}
+.endfor
+.for p in ${PLUGINS}
+	@echo GEN irccd-plugin-${p}.html
+	@${MANDOC} ${MANDOC_HTML} irccd-${VERSION}/plugins/${p}/${p}.7 > irccd-plugin-${p}.html
+.endfor
+	@rm -rf irccd-${VERSION}
+
+clean:
+	@${RM} ${SOURCE} *.html *.pdf
+
+publish: site man
+	@rsync -av css webfonts *.html *.pdf ${DESTINATION}
+
 .md.html:
 	@echo GEN $@
 	@${PANDOC} ${PANDOC_FLAGS} -o $@ $<
 
-clean:
-	@${RM} ${FILES}
-
-.SUFFIXES:      .html .md
-.PHONY:         all clean
+.PHONY: all clean download man publish site
--- a/index.md	Tue Jul 16 20:31:08 2019 +0200
+++ b/index.md	Fri Aug 16 11:52:15 2019 +0200
@@ -17,7 +17,7 @@
 News
 ----
 
-- ??
+- (2019-08-16) New release: irccd 3.0.0
 
 Downloads
 ---------
@@ -27,8 +27,8 @@
 
 Current version is 3.0.0
 
-- [irccd-3.0.0.tar.xz][]
-- [irccd-3.0.0.zip][]
+- [irccd-3.0.0.tar.xz][] ([signature][irccd-3.0.0.tar.xz.asc])
+- [irccd-3.0.0.zip][] ([signature][irccd-3.0.0.tar.xz.asc])
 
 For those who wants to use the development version, it is available in the
 Mercurial [repository](http://hg.malikania.fr/irccd):
@@ -45,22 +45,26 @@
 Documentation is available as manual pages once installed but you can read the
 last version on this website.
 
-- [irccd.1][], [irccd.conf.5][]
-- [irccdctl.1][], [irccdctl.conf.5][]
-- [irccd-test.1][]
+- [irccd.1][] ([pdf][irccd.1.pdf])
+- [irccd.conf.5][] ([pdf][irccd.conf.5.pdf])
+- [irccdctl.1][] ([pdf][irccdctl.1.pdf])
+- [irccdctl.conf.5][] ([pdf][irccdctl.conf.5.pdf])
+- [irccd-test.1][] ([pdf][irccd-test.1.pdf])
+- [irccd-api.7][] ([pdf][irccd-api.7.pdf])
+- [irccd-templates.7][] ([pdf][irccd-templates.7.pdf])
 
 Plugins:
 
-- [irccd-plugin-ask][]
-- [irccd-plugin-auth][]
-- [irccd-plugin-hangman][]
-- [irccd-plugin-history][]
-- [irccd-plugin-joke][]
-- [irccd-plugin-links][]
-- [irccd-plugin-logger][]
-- [irccd-plugin-plugin][]
-- [irccd-plugin-roulette][]
-- [irccd-plugin-tictactoe][]
+- [irccd-plugin-ask.7][] ([pdf][irccd-plugin-ask.7.pdf])
+- [irccd-plugin-auth.7][] ([pdf][irccd-plugin-auth.7.pdf])
+- [irccd-plugin-hangman.7][] ([pdf][irccd-plugin-hangman.7.pdf])
+- [irccd-plugin-history.7][] ([pdf][irccd-plugin-history.7.pdf])
+- [irccd-plugin-joke.7][] ([pdf][irccd-plugin-joke.7.pdf])
+- [irccd-plugin-links.7][] ([pdf][irccd-plugin-links.7.pdf])
+- [irccd-plugin-logger.7][] ([pdf][irccd-plugin-logger.7.pdf])
+- [irccd-plugin-plugin.7][] ([pdf][irccd-plugin-plugin.7.pdf])
+- [irccd-plugin-roulette.7][] ([pdf][irccd-plugin-roulette.7.pdf])
+- [irccd-plugin-tictactoe.7][] ([pdf][irccd-plugin-tictactoe.7.pdf])
 
 Additional documentation available on this website:
 
@@ -95,20 +99,41 @@
 - [RFC2810](https://tools.ietf.org/html/rfc2810)
 - [RFC2813](https://tools.ietf.org/html/rfc2813)
 
-[irccd-3.0.0.tar.xz]: http://example.org
-[irccd-3.0.0.zip]: http://example.org
-[irccd-plugin-ask]: http://example.org
-[irccd-plugin-auth]: http://example.org
-[irccd-plugin-hangman]: http://example.org
-[irccd-plugin-history]: http://example.org
-[irccd-plugin-joke]: http://example.org
-[irccd-plugin-links]: http://example.org
-[irccd-plugin-logger]: http://example.org
-[irccd-plugin-plugin]: http://example.org
-[irccd-plugin-roulette]: http://example.org
-[irccd-plugin-tictactoe]: http://example.org
-[irccd-test.1]: http://example.org
-[irccd.1]: http://example.org
-[irccd.conf.5]: http://example.org
-[irccdctl.1]: http://example.org
-[irccdctl.conf.5]: http://example.org
+[irccd-3.0.0.tar.xz.asc]: http://releases.malikania.fr/irccd/3.0.0/irccd-3.0.0.tar.xz.asc
+[irccd-3.0.0.tar.xz]: http://releases.malikania.fr/irccd/3.0.0/irccd-3.0.0.tar.xz
+[irccd-3.0.0.zip.asc]: http://releases.malikania.fr/irccd/3.0.0/irccd-3.0.0.zip.asc
+[irccd-3.0.0.zip]: http://releases.malikania.fr/irccd/3.0.0/irccd-3.0.0.zip
+[irccd-api.7.pdf]: irccd-api.pdf
+[irccd-api.7]: irccd-api.html
+[irccd-plugin-ask.7.pdf]: irccd-plugin-ask.pdf
+[irccd-plugin-ask.7]: irccd-plugin-ask.html
+[irccd-plugin-auth.7.pdf]: irccd-plugin-auth.pdf
+[irccd-plugin-auth.7]: irccd-plugin-auth.html
+[irccd-plugin-hangman.7.pdf]: irccd-plugin-hangman.pdf
+[irccd-plugin-hangman.7]: irccd-plugin-hangman.html
+[irccd-plugin-history.7.pdf]: irccd-plugin-history.pdf
+[irccd-plugin-history.7]: irccd-plugin-history.html
+[irccd-plugin-joke.7.pdf]: irccd-plugin-joke.pdf
+[irccd-plugin-joke.7]: irccd-plugin-joke.html
+[irccd-plugin-links.7.pdf]: irccd-plugin-links.pdf
+[irccd-plugin-links.7]: irccd-plugin-links.html
+[irccd-plugin-logger.7.pdf]: irccd-plugin-logger.pdf
+[irccd-plugin-logger.7]: irccd-plugin-logger.html
+[irccd-plugin-plugin.7.pdf]: irccd-plugin-plugin.pdf
+[irccd-plugin-plugin.7]: irccd-plugin-plugin.html
+[irccd-plugin-roulette.7.pdf]: irccd-plugin-roulette.pdf
+[irccd-plugin-roulette.7]: irccd-plugin-roulette.html
+[irccd-plugin-tictactoe.7.pdf]: irccd-plugin-tictactoe.pdf
+[irccd-plugin-tictactoe.7]: irccd-plugin-tictactoe.html
+[irccd-templates.7.pdf]: irccd-templates.pdf
+[irccd-templates.7]: irccd-templates.html
+[irccd-test.1.pdf]: irccd-test.pdf
+[irccd-test.1]: irccd-test.html
+[irccd.1.pdf]: irccd.pdf
+[irccd.1]: irccd.html
+[irccd.conf.5.pdf]: irccd.conf.pdf
+[irccd.conf.5]: irccd.conf.html
+[irccdctl.1.pdf]: irccdctl.pdf
+[irccdctl.1]: irccdctl.html
+[irccdctl.conf.5.pdf]: irccdctl-conf.pdf
+[irccdctl.conf.5]: irccdctl-conf.html

mercurial