Commit 6403c35e authored by Alvaro Herrera's avatar Alvaro Herrera

Fix manpages related to SPI functions.

This patch adds declaration so that they end up in section 3, and adds
them to the Makefiles to install them.

Also, some synopses needed reflowing so that they look nice in 80-column
terminals.
parent 25bd9ce3
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# Copyright (c) 1994, Regents of the University of California # Copyright (c) 1994, Regents of the University of California
# #
# $PostgreSQL: pgsql/doc/Makefile,v 1.37 2009/06/27 21:06:46 tgl Exp $ # $PostgreSQL: pgsql/doc/Makefile,v 1.38 2009/08/05 19:31:49 alvherre Exp $
# #
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
...@@ -47,9 +47,9 @@ fix_sqlmansectnum = sed -e '/^\.TH/s/"7"/"$(sqlmansect)"/' \ ...@@ -47,9 +47,9 @@ fix_sqlmansectnum = sed -e '/^\.TH/s/"7"/"$(sqlmansect)"/' \
-e 's/\\fR(7)/\\fR($(sqlmansectnum))/g' \ -e 's/\\fR(7)/\\fR($(sqlmansectnum))/g' \
-e '1s/^\.so man7/.so man$(sqlmansectnum)/g;1s/^\(\.so.*\)\.7$$/\1.$(sqlmansect)/g' -e '1s/^\.so man7/.so man$(sqlmansectnum)/g;1s/^\(\.so.*\)\.7$$/\1.$(sqlmansect)/g'
all: man1/.timestamp man$(sqlmansectnum)/.timestamp all: man1/.timestamp man3/.timestamp man$(sqlmansectnum)/.timestamp
man1/.timestamp: man7/.timestamp man1/.timestamp man3/.timestamp: man7/.timestamp
@echo timestamp >$@ @echo timestamp >$@
man7/.timestamp: man.tar.gz man7/.timestamp: man.tar.gz
...@@ -79,7 +79,7 @@ ifdef found_html ...@@ -79,7 +79,7 @@ ifdef found_html
gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xf - ) gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xf - )
endif endif
ifdef found_man ifdef found_man
for file in man1/*.1 man$(sqlmansectnum)/*.$(sqlmansect) ; do \ for file in man1/*.1 man3/*.3 man$(sqlmansectnum)/*.$(sqlmansect) ; do \
$(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/$$file || exit; \ $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/$$file || exit; \
done done
endif endif
...@@ -90,7 +90,7 @@ ifdef found_html ...@@ -90,7 +90,7 @@ ifdef found_html
$(mkinstalldirs) '$(DESTDIR)$(htmldir)'/html $(mkinstalldirs) '$(DESTDIR)$(htmldir)'/html
endif endif
ifdef found_man ifdef found_man
$(mkinstalldirs) $(addprefix '$(DESTDIR)$(mandir)'/man, 1 $(sqlmansectnum)) $(mkinstalldirs) $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))
endif endif
...@@ -104,5 +104,5 @@ endif ...@@ -104,5 +104,5 @@ endif
clean distclean maintainer-clean: clean distclean maintainer-clean:
rm -rf man1/ man7/ man$(sqlmansectnum)/ rm -rf man1/ man3/ man7/ man$(sqlmansectnum)/
$(MAKE) -C src $@ $(MAKE) -C src $@
# Postgres documentation makefile # Postgres documentation makefile
# $PostgreSQL: pgsql/doc/src/Makefile,v 1.35 2008/11/14 10:43:59 petere Exp $ # $PostgreSQL: pgsql/doc/src/Makefile,v 1.36 2009/08/05 19:31:50 alvherre Exp $
subdir = doc/src subdir = doc/src
top_builddir = ../.. top_builddir = ../..
...@@ -15,4 +15,4 @@ postgres.tar: ...@@ -15,4 +15,4 @@ postgres.tar:
man.tar: man.tar:
$(MAKE) -C sgml man $(MAKE) -C sgml man
$(TAR) -cf $@ -C sgml man1 man7 $(TAR) -cf $@ -C sgml man1 man3 man7
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# #
# PostgreSQL documentation makefile # PostgreSQL documentation makefile
# #
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.120 2009/08/04 22:04:37 petere Exp $ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.121 2009/08/05 19:31:50 alvherre Exp $
# #
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
...@@ -74,7 +74,7 @@ man: man-stamp ...@@ -74,7 +74,7 @@ man: man-stamp
man-stamp: stylesheet-man.xsl postgres.xml man-stamp: stylesheet-man.xsl postgres.xml
$(XSLTPROC) $(XSLTPROCFLAGS) $^ $(XSLTPROC) $(XSLTPROCFLAGS) $^
rm man1/SPI* man1/dblink* rm man1/dblink*
touch $@ touch $@
...@@ -269,7 +269,7 @@ clean distclean maintainer-clean: ...@@ -269,7 +269,7 @@ clean distclean maintainer-clean:
# HTML # HTML
rm -f *.html html-stamp rm -f *.html html-stamp
# man # man
rm -rf man1 man7 man-stamp rm -rf man1 man3 man7 man-stamp
# print # print
rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot
# index # index
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment