summaryrefslogtreecommitdiff
path: root/dh_shlibdeps
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-21 14:50:27 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-21 14:50:27 -0400
commitd6759d6a6c9c354abad02ddfbee6782357c8ed6b (patch)
tree81e135e6fa422e83df281f9e5a2a282378628a3f /dh_shlibdeps
parent3c458775d1180d034217c4b44e3871d8b87bf382 (diff)
Move many command-specific options to only be accepted by the command that uses them.
Affected options are: -x, -r, -R, -l, -L, -m, --include-conffiles, --no-restart-on-upgrade, --no-start, --restart-after-upgrade, --init-script, --filename, --flavor, --autodest, --libpackage, --add-udeb, --dpkg-shlibdeps-params, --dpkg-gencontrol-params, --update-rcd-params, --major, --remove-d, --dirs-only, --keep-debug, --version-info, --list-missing, --fail-missing, --language, --until, --after, --before, --remaining, --with * If any third-party debhelper commands use any of the above options, they will be broken, and need to be changed to pass options to init(). * To avoid breaking rules files that pass options to commands that do not use them, debhelper will now only warn if it encounters an unknown option. This will be converted back to an error later.
Diffstat (limited to 'dh_shlibdeps')
-rwxr-xr-xdh_shlibdeps9
1 files changed, 7 insertions, 2 deletions
diff --git a/dh_shlibdeps b/dh_shlibdeps
index e859f04..320f250 100755
--- a/dh_shlibdeps
+++ b/dh_shlibdeps
@@ -82,10 +82,15 @@ libfoo, and is installed into /usr/lib/bar/, you can make libfoo-bin depend
on libbar1 as follows:
dh_shlibdeps -Llibbar1 -l/usr/lib/bar
-
+
=cut
-init();
+init(options => {
+ "L|libpackage=s" => \$dh{LIBPACKAGE},
+ "add-udeb=s" => \$dh{SHLIBS_UDEB},
+ "dpkg-shlibdeps-params=s", => \$dh{U_PARAMS},
+ "l=s", => \$dh{L_PARAMS},
+});
if ($dh{L_PARAMS}) {
my @paths=();