summaryrefslogtreecommitdiff
path: root/lib/Debian
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 /lib/Debian
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 'lib/Debian')
-rw-r--r--lib/Debian/Debhelper/Dh_Buildsystems.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Debian/Debhelper/Dh_Buildsystems.pm b/lib/Debian/Debhelper/Dh_Buildsystems.pm
index a386507c..d0e69d8c 100644
--- a/lib/Debian/Debhelper/Dh_Buildsystems.pm
+++ b/lib/Debian/Debhelper/Dh_Buildsystems.pm
@@ -185,9 +185,11 @@ sub buildsystems_init {
# Available command line options
my %options = (
"D=s" => \$opt_sourcedir,
+ "sourcedir=s" => \$opt_sourcedir,
"sourcedirectory=s" => \$opt_sourcedir,
"B:s" => \$opt_builddir,
+ "builddir:s" => \$opt_builddir,
"builddirectory:s" => \$opt_builddir,
"S=s" => \$opt_buildsys,