mancheck:
sh -c 'find . -name \*.\[13\] -exec troff -z {} \;' 2>&1 | sed "s/^\.\///" | sed "s/\(:[0\-9]\+:\)/\1 warning:/g"
-doxygen: manpages
+doxygen:
@if test ! -e doc/header.html ; then \
$(INSTALL) -c -m 644 $(srcdir)/doc/header.html doc/ ; \
fi ;
@$(INSTALL) -d doc
manpages: $(srcdir)/doc/function_manpages
- @$(INSTALL) -d doc
- @cat $(srcdir)/ldns/*.h \
- | $(srcdir)/doc/doxyparse.pl \
- -m $(srcdir)/doc/function_manpages \
- | grep -v ^doxygen | grep -v ^cat > doc/ldns_manpages
+ @$(INSTALL) -d doc/man/man3
+ @if [ -f $(srcdir)/doc/man/man3/ldns_rr.3 ] ; \
+ then \
+ echo "Copying manpages..."; \
+ for m in "$(srcdir)/doc/man/man3/*.3" ; \
+ do \
+ $(INSTALL) -d "$${m}" doc/man/man3; \
+ done; \
+ else \
+ echo "Generating manpages..."; \
+ cat $(srcdir)/ldns/*.h \
+ | $(srcdir)/doc/doxyparse.pl -m $(srcdir)/doc/function_manpages \
+ | grep -v ^doxygen | grep -v ^cat > doc/ldns_manpages; \
+ fi
manpage-create-errors: $(srcdir)/doc/function_manpages
@$(INSTALL) -d doc
# must be numbers. ac_defun because of later processing.
m4_define([VERSION_MAJOR],[1])
m4_define([VERSION_MINOR],[7])
-m4_define([VERSION_MICRO],[0])
+m4_define([VERSION_MICRO],[1])
AC_INIT(ldns, m4_defn([VERSION_MAJOR]).m4_defn([VERSION_MINOR]).m4_defn([VERSION_MICRO]), libdns@nlnetlabs.nl, libdns)
AC_CONFIG_SRCDIR([packet.c])
# needed to build correct soname
# set age to 0
#
# ldns-1.6.17 and before had a .so with version same as VERSION_INFO
-# ldns-1.7.0 will have libversion 2:0:0
+# ldns-1.7.0 has libversion 2:0:0
+# ldns-1.7.1 will have libversion 2:1:0
#
-AC_SUBST(VERSION_INFO, [2:0:0])
+AC_SUBST(VERSION_INFO, [2:1:0])
AC_AIX
if test "$ac_cv_header_minix_config_h" = "yes"; then
FITNESS FOR A PARTICULAR PURPOSE.
";
my $MAN_FOOTER = ".SH REMARKS
-This manpage was automatically generated from the ldns source code by
-use of Doxygen and some perl.
+This manpage was automatically generated from the ldns source code.
";
getopts("em:",\%options);
# working directory.
cleanup () {
info "Deleting temporary working directory."
- cd $cwd && rm -rf $temp_dir
+ cd $cwd && rm -rf $temp_dir && rm -rf $doc_dir
}
error_cleanup () {
# Creating temp directory
info "Creating temporary working directory"
temp_dir=`mktemp -d ldns-dist-XXXXXX`
+doc_dir=`mktemp -d ldns-dist-XXXXXX`
info "Directory '$temp_dir' created."
cd $temp_dir
cd ..
mv ldns ldns-$version || error_cleanup "Failed to rename LDNS directory."
+info "Building the manpages"
+(
+ srcdir=`pwd`
+ cd "../$doc_dir"
+ "${srcdir}/ldns-$version/configure" --disable-dane
+ make manpages
+ cp -prv doc/ldns_manpages "${srcdir}/ldns-$version/doc/ldns_manpages"
+ cp -prv doc/man "${srcdir}/ldns-$version/doc/man"
+)
+
tarfile="../ldns-$version.tar.gz"
if [ -f $tarfile ]; then