aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-25 21:51:56 +0000
committerng0 <ng0@n0.is>2019-11-25 21:51:56 +0000
commit18d272da7b9a03914abba35ef3992a7e34467ac2 (patch)
tree8ce3318234e3d738fc5368894dc6904475bc452d /doc
parent953c0fde25e5b47b378c535b91b648be93dfb871 (diff)
downloadgnunet-18d272da7b9a03914abba35ef3992a7e34467ac2.tar.gz
gnunet-18d272da7b9a03914abba35ef3992a7e34467ac2.zip
man/produce_html: use shlib
Diffstat (limited to 'doc')
-rw-r--r--doc/man/Makefile.am10
-rwxr-xr-xdoc/man/produce_html.sh.in (renamed from doc/man/produce_html.sh)5
2 files changed, 10 insertions, 5 deletions
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index e60d11413..69e42bc9d 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -5,6 +5,8 @@ do_subst = $(SED) -e 's,[@]SYSCONFDIR[@],$(sysconfdir),g'
5gnunet.conf.5: gnunet.conf.5.in Makefile 5gnunet.conf.5: gnunet.conf.5.in Makefile
6 $(do_subst) < $(srcdir)/gnunet.conf.5.in > gnunet.conf.5 6 $(do_subst) < $(srcdir)/gnunet.conf.5.in > gnunet.conf.5
7 7
8do_subst_pkgdatadir = $(SED) -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
9
8CLEANFILES = gnunet.conf.5 10CLEANFILES = gnunet.conf.5
9 11
10if TEXI2MDOC_GENERATION 12if TEXI2MDOC_GENERATION
@@ -25,8 +27,13 @@ if HAVE_MANDOC
25# that this is the most portable way to achieve what 27# that this is the most portable way to achieve what
26# I want and that the alternatives are depressing and 28# I want and that the alternatives are depressing and
27# nonfunctional. 29# nonfunctional.
30produce_html.sh: produce_html.sh.in Makefile
31 $(do_subst_pkgdatadir) < $(srcdir)/produce_html.sh.in > produce_html.sh
32
33CLEANFILES += produce_html.sh
34
28.PHONY: man-html 35.PHONY: man-html
29man-html: 36man-html: produce_html.sh
30 $(SH) $(srcdir)/produce_html.sh 37 $(SH) $(srcdir)/produce_html.sh
31 38
32htmldocdir = $(datadir)/doc/gnunet/manhtml/ 39htmldocdir = $(datadir)/doc/gnunet/manhtml/
@@ -96,4 +103,5 @@ endif
96 103
97EXTRA_DIST = ${man_MANS} \ 104EXTRA_DIST = ${man_MANS} \
98 gnunet.conf.5.in \ 105 gnunet.conf.5.in \
106 produce_html.sh.in \
99 README 107 README
diff --git a/doc/man/produce_html.sh b/doc/man/produce_html.sh.in
index ce6dea304..3f4520776 100755
--- a/doc/man/produce_html.sh
+++ b/doc/man/produce_html.sh.in
@@ -1,9 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2 2
3existence() 3. @pkgdatadir@/existence.sh
4{
5 command -v "$1" >/dev/null 2>&1
6}
7 4
8if existence mandoc; 5if existence mandoc;
9then 6then