Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6403c35

Browse files
committed
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.
1 parent 25bd9ce commit 6403c35

File tree

4 files changed

+62
-17
lines changed

4 files changed

+62
-17
lines changed

doc/Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $PostgreSQL: pgsql/doc/Makefile,v 1.37 2009/06/27 21:06:46 tgl Exp $
7+
# $PostgreSQL: pgsql/doc/Makefile,v 1.38 2009/08/05 19:31:49 alvherre Exp $
88
#
99
#----------------------------------------------------------------------------
1010

@@ -47,9 +47,9 @@ fix_sqlmansectnum = sed -e '/^\.TH/s/"7"/"$(sqlmansect)"/' \
4747
-e 's/\\fR(7)/\\fR($(sqlmansectnum))/g' \
4848
-e '1s/^\.so man7/.so man$(sqlmansectnum)/g;1s/^\(\.so.*\)\.7$$/\1.$(sqlmansect)/g'
4949

50-
all: man1/.timestamp man$(sqlmansectnum)/.timestamp
50+
all: man1/.timestamp man3/.timestamp man$(sqlmansectnum)/.timestamp
5151

52-
man1/.timestamp: man7/.timestamp
52+
man1/.timestamp man3/.timestamp: man7/.timestamp
5353
@echo timestamp >$@
5454

5555
man7/.timestamp: man.tar.gz
@@ -79,7 +79,7 @@ ifdef found_html
7979
gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xf - )
8080
endif
8181
ifdef found_man
82-
for file in man1/*.1 man$(sqlmansectnum)/*.$(sqlmansect) ; do \
82+
for file in man1/*.1 man3/*.3 man$(sqlmansectnum)/*.$(sqlmansect) ; do \
8383
$(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/$$file || exit; \
8484
done
8585
endif
@@ -90,7 +90,7 @@ ifdef found_html
9090
$(mkinstalldirs) '$(DESTDIR)$(htmldir)'/html
9191
endif
9292
ifdef found_man
93-
$(mkinstalldirs) $(addprefix '$(DESTDIR)$(mandir)'/man, 1 $(sqlmansectnum))
93+
$(mkinstalldirs) $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))
9494
endif
9595

9696

@@ -104,5 +104,5 @@ endif
104104

105105

106106
clean distclean maintainer-clean:
107-
rm -rf man1/ man7/ man$(sqlmansectnum)/
107+
rm -rf man1/ man3/ man7/ man$(sqlmansectnum)/
108108
$(MAKE) -C src $@

doc/src/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Postgres documentation makefile
2-
# $PostgreSQL: pgsql/doc/src/Makefile,v 1.35 2008/11/14 10:43:59 petere Exp $
2+
# $PostgreSQL: pgsql/doc/src/Makefile,v 1.36 2009/08/05 19:31:50 alvherre Exp $
33

44
subdir = doc/src
55
top_builddir = ../..
@@ -15,4 +15,4 @@ postgres.tar:
1515

1616
man.tar:
1717
$(MAKE) -C sgml man
18-
$(TAR) -cf $@ -C sgml man1 man7
18+
$(TAR) -cf $@ -C sgml man1 man3 man7

doc/src/sgml/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.120 2009/08/04 22:04:37 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.121 2009/08/05 19:31:50 alvherre Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -74,7 +74,7 @@ man: man-stamp
7474

7575
man-stamp: stylesheet-man.xsl postgres.xml
7676
$(XSLTPROC) $(XSLTPROCFLAGS) $^
77-
rm man1/SPI* man1/dblink*
77+
rm man1/dblink*
7878
touch $@
7979

8080

@@ -269,7 +269,7 @@ clean distclean maintainer-clean:
269269
# HTML
270270
rm -f *.html html-stamp
271271
# man
272-
rm -rf man1 man7 man-stamp
272+
rm -rf man1 man3 man7 man-stamp
273273
# print
274274
rm -f *.rtf *.tex-ps *.tex-pdf *.dvi *.aux *.log *.ps *.pdf *.out *.fot
275275
# index

0 commit comments

Comments
 (0)