summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2019-08-15 09:48:19 +0000
committerNiels Thykier <niels@thykier.net>2019-08-15 09:52:55 +0000
commitd3e7d3e0293166ed836ae73073eb5fdd511b8693 (patch)
tree8b3d089e7c72390ad423563d58b3e6d99cb3941e /dh
parentdcb766ade2cd5e9415ee44fa6725508ae333769d (diff)
downloaddebhelper-d3e7d3e0293166ed836ae73073eb5fdd511b8693.tar.gz
dh_auto_*: Officially adopt --sourcedir/--builddir
Since the beginning, debhelper has accepted abbrevated command line parameters. Anyone that has been using (e.g.): dh $@ --sourcedir=foo To pass --sourcedir to dh_install has *also* implicitly passed it to the dh_auto_* helpers. Due to auto-abbrevation being enabled, they have considered it a short form of --sourcedirectory. This is trivially confirmable by comparing: dh_auto_configure --bar foo Unknown option: bar dh_auto_configure: unknown option or error during option parsing; aborting with dh_auto_configure --sourcedir foo dh_auto_configure: invalid or non-existing path to the source directory: foo Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh')
-rwxr-xr-xdh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh b/dh
index 82e80715..5cc5bb34 100755
--- a/dh
+++ b/dh
@@ -9,7 +9,7 @@ dh - debhelper command sequencer
use strict;
use warnings;
use constant {
- 'UNSKIPPABLE_CLI_OPTIONS_BUILD_SYSTEM' => q(-S|--buildsystem|-D|--sourcedirectory|-B|--builddirectory),
+ 'UNSKIPPABLE_CLI_OPTIONS_BUILD_SYSTEM' => q(-S|--buildsystem|-D|--sourcedir(?:ectory)?|-B|--builddir(?:ectory)?),
};
use Debian::Debhelper::Dh_Lib;
use Debian::Debhelper::SequencerUtil;