| 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"); |
| 13 |
add_command_options("dh_auto_build", "--buildsystem=pgxs"); |
| 14 |
add_command_options("dh_auto_install", "--buildsystem=pgxs"); |
| 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 |
} |
| 21 |
|
| 22 |
1; |