Debian Codegraph @

debhelper/Debian/Debhelper/Sequence/pgxs_loop.pm

raw
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5 use Debian::Debhelper::Dh_Lib;
6
7 # check if debian/control needs updating from debian/control.in
8 insert_after("dh_clean", "pg_buildext");
9 add_command_options("pg_buildext", "checkcontrol");
10
11 # use PGXS for clean, build, and install
12 add_command_options("dh_auto_clean", "--buildsystem=pgxs_loop");
13 add_command_options("dh_auto_build", "--buildsystem=pgxs_loop");
14 add_command_options("dh_auto_install", "--buildsystem=pgxs_loop");
15
16 # move tests from dh_auto_test to dh_pgxs_test
17 remove_command("dh_auto_test");
18 if (! get_buildoption("nocheck")) {
19 insert_after("dh_link", "dh_pgxs_test");
20 add_command_options("dh_pgxs_test", "loop");
21 }
22
23 1;