$(APIMANS): stamp_mans
+YEAR=`date +%Y`
+
compare-makefile:
FUNCS=`cat $(top_srcdir)/lib/includes/gnutls/*.h | $(top_srcdir)/doc/scripts/getfuncs.pl|sort -d`; \
MANS=""; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/gnutls.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/compat.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/dane.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/x509.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/ocsp.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/abstract.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/pkcs12.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/pkcs11.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/dtls.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/openpgp.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/crypto.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/tpm.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
$(top_srcdir)/doc/scripts/gdoc -man \
-module $(PACKAGE) -sourceversion $(VERSION) \
-bugsto $(PACKAGE_BUGREPORT) \
- -pkg-name "$(PACKAGE_NAME)" \
+ -pkg-site "http://www.gnutls.org" \
-include "gnutls/xssl.h" \
-seeinfo $(PACKAGE) -verbatimcopying \
- -copyright "2001-2013 Free Software Foundation, Inc." \
+ -copyright "2001-$(YEAR) Free Software Foundation, Inc" \
-function $$i \
$(C_SOURCE_FILES) > $$i.3 2>/dev/null && \
echo $(ECHO_N) "."; \
if 0;
## Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
-## added -texinfo, -listfunc, -pkg-name
+## added -texinfo, -listfunc
## man page revamp
## various improvements
-## Copyright (c) 2001, 2002 Nikos Mavrogiannopoulos
-## added -tex
+## Copyright (c) 2001, 2002, 2013 Nikos Mavrogiannopoulos
+## added -tex, -pkg-site
## Copyright (c) 1998 Michael Zucchi
## Copyright (c) 2013 Adam Sampson
## made highlighting not depend on hash order, for Perl 5.18
# usage:
# gdoc [ -docbook | -html | -text | -man | -tex | -texinfo | -listfunc ]
# [ -sourceversion verno ] [ -include file | -includefuncprefix ]
-# [ -bugsto address ] [ -pkg-name packagename ]
+# [ -bugsto address ] [ -pkg-site website ]
# [ -seeinfo infonode ] [ -copyright notice ] [ -verbatimcopying ]
# [ -function funcname [ -function funcname ...] ] c file(s)s > outputfile
#
# For man pages, include a section about reporting bugs and mention
# the given e-mail address, e.g 'bug-libidn@gnu.org'.
#
-# -pkg-name packagename
+# -pkg-site web-site
# For man pages when -bugsto is used, also include help URLs to the
-# the project's home page. For example, "GNU Libidn".
+# the project's home page.
#
# -seeinfo infonode
# For man pages, include a section that point to an info manual
print "Usage: $0 [ -v ] [ -docbook | -html | -text | -man | -tex | -texinfo -listfunc ]\n";
print " [ -sourceversion verno ] [ -include file | -includefuncprefix ]\n";
print " [ -bugsto address ] [ -seeinfo infonode ] [ -copyright notice]\n";
- print " [ -verbatimcopying ] [ -pkg-name packagename ]\n";
+ print " [ -verbatimcopying ] [ -pkg-site website ]\n";
print " [ -function funcname [ -function funcname ...] ]\n";
print " c source file(s) > outputfile\n";
exit 1;
$includefuncprefix = 1;
} elsif ($cmd eq "-bugsto") {
$bugsto = shift @ARGV;
- } elsif ($cmd eq "-pkg-name") {
- $pkgname = shift @ARGV;
+ } elsif ($cmd eq "-pkg-site") {
+ $pkgsite = shift @ARGV;
} elsif ($cmd eq "-copyright") {
$copyright = shift @ARGV;
} elsif ($cmd eq "-verbatimcopying") {
if ($args{'bugsto'}) {
print ".SH \"REPORTING BUGS\"\n";
print "Report bugs to <". $args{'bugsto'} . ">.\n";
+ #print ".br\n";
+ #print "General guidelines for reporting bugs: http://www.gnu.org/gethelp/\n";
print ".br\n";
- print "General guidelines for reporting bugs: http://www.gnu.org/gethelp/\n";
- print ".br\n";
- if ($args{'pkgname'}) {
- print $args{'pkgname'} . " home page: " .
- "http://www.gnu.org/software/" . $args{'module'} . "/\n";
+ if ($args{'pkgsite'}) {
+ print "Home page: " . $args{'pkgsite'} . "\n";
}
print "\n";
}
print ".SH \"SEE ALSO\"\n";
print "The full documentation for\n";
print ".B " . $args{'module'} . "\n";
- print "is maintained as a Texinfo manual. If the\n";
- print ".B info\n";
- print "and\n";
- print ".B " . $args{'module'} . "\n";
- print "programs are properly installed at your site, the command\n";
- print ".IP\n";
- print ".B info " . $args{'seeinfo'} . "\n";
- print ".PP\n";
- print "should give you access to the complete manual.\n";
- print "As an alternative you may obtain the manual from:\n";
- print ".IP\n";
- print ".B http://www.gnu.org/software/" . $args{'module'} . "/manual/\n";
+ print "is maintained as a Texinfo manual.\n";
+ if ($args{'pkgsite'}) {
+ print "If the /usr/share/doc/". $args{'module'} . "/\n";
+ print "directory does not contain the HTML form visit\n";
+ print ".B\n";
+ print ".IP " . $args{'pkgsite'} . "/manual/\n";
+ }
print ".PP\n";
}
}
'include' => $include,
'includefuncprefix' => $includefuncprefix,
'bugsto' => $bugsto,
- 'pkgname' => $pkgname,
+ 'pkgsite' => $pkgsite,
'copyright' => $copyright,
'verbatimcopying' => $verbatimcopying,
'seeinfo' => $seeinfo,
'include' => $include,
'includefuncprefix' => $includefuncprefix,
'bugsto' => $bugsto,
- 'pkgname' => $pkgname,
+ 'pkgsite' => $pkgsite,
'copyright' => $copyright,
'verbatimcopying' => $verbatimcopying,
'seeinfo' => $seeinfo,