Commit 2362285c authored by Martin Pitt's avatar Martin Pitt

move pg_buildext POD into script itself, and simplify debian/rules

parent c7fb4cdc
......@@ -2,7 +2,7 @@
include /usr/share/cdbs/1/rules/debhelper.mk
POD2MAN=pod2man --center "Debian PostgreSQL infrastructure" -r "Debian"
POD1PROGS=pg_wrapper pg_lsclusters
POD1PROGS=pg_wrapper pg_lsclusters pg_buildext
POD8PROGS=pg_ctlcluster pg_createcluster pg_dropcluster pg_upgradecluster pg_updatedicts
DEB_DH_INSTALLINIT_ARGS := "--name=postgresql"
......@@ -11,15 +11,9 @@ build/postgresql-common::
for p in $(POD1PROGS); do $(POD2MAN) --quotes=none --section 1 $$p > $$p.1; done
for p in $(POD8PROGS); do $(POD2MAN) --quotes=none --section 8 $$p > $$p.8; done
build/postgresql-server-dev-all:: pg_buildext.pod
$(POD2MAN) --quotes=none --section 1 $< > `basename $< .pod`.1
install/postgresql-common::
install -D -m 644 debian/postgresql-common.lintian $(DEB_DESTDIR)/usr/share/lintian/overrides/postgresql-common
cleanbuilddir/postgresql-common::
for p in $(POD1PROGS); do rm -f $$p.1; done
for p in $(POD8PROGS); do rm -f $$p.8; done
cleanbuilddir/postgresql-server-dev-all::
rm -f pg_buildext.1
......@@ -62,3 +62,48 @@ do
done
exit 0
# POD follows here
=head1 NAME
pg_buildext - Build and install a PostgreSQL extension
=head1 SYNOPSIS
B<pg_buildext> I<action> I<srcdir> I<target> I<opts>
=head1 DESCRIPTION
B<pg_buildext> is a script that will build a PostgreSQL extension in a
C<VPATH> way. It only supports the B<build> and B<clean> actions, and will
choose to build the versions known in C<debian/pgversions> and in
C</usr/share/postgresql-common/supported-versions>.
=head1 OPTIONS
=over 4
=item B<action>
Either I<clean> or I<build>.
=item B<srcdir>
Where to find the extension sources, including the C<debian> subdirectory.
=item B<target>
The target directory where to build the sources, it will get created for you
if it does not exist. If the B<target> contains a C<%v> sign, it will get
replaced by the specific version of PostgreSQL being built against.
=item B<opts>
Custom C<CFLAGS> options to use for the build.
=back
=head1 AUTHOR
Dimitri Fontaine L<E<lt>dim@tapoueh.orgE<gt>>
=head1 NAME
pg_buildext - Build and install a PostgreSQL extension
=head1 SYNOPSIS
B<pg_buildext> I<action> I<srcdir> I<target> I<opts>
=head1 DESCRIPTION
B<pg_buildext> is a script that will build a PostgreSQL extension in a
C<VPATH> way. It only supports the B<build> and B<clean> actions, and will
choose to build the versions known in C<debian/pgversions> and in
C</usr/share/postgresql-common/supported-versions>.
=head1 OPTIONS
=over 4
=item B<action>
Either I<clean> or I<build>.
=item B<srcdir>
Where to find the extension sources, including the C<debian> subdirectory.
=item B<target>
The target directory where to build the sources, it will get created for you
if it does not exist. If the B<target> contains a C<%v> sign, it will get
replaced by the specific version of PostgreSQL being built against.
=item B<opts>
Custom C<CFLAGS> options to use for the build.
=back
=head1 AUTHOR
Dimitri Fontaine L<E<lt>dim@tapoueh.orgE<gt>>
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