summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install28
1 files changed, 16 insertions, 12 deletions
diff --git a/dh_install b/dh_install
index cb30d4d7..1483d273 100755
--- a/dh_install
+++ b/dh_install
@@ -42,17 +42,12 @@ directories and files from there into the proper package build directories.
From debhelper compatibility level 7 on, dh_install will fall back to
looking in debian/tmp for files, if it doesn't find them in the current
-directory (or whereever you've told it to look using --srcdir).
+directory (or whereever you've told it to look using --sourcedir).
=head1 OPTIONS
=over 4
-=item B<-Xitem>, B<--exclude=item>
-
-Exclude files that contain "item" anywhere in their filename from
-being installed.
-
=item B<--autodest>
Guess as the destination directory to install things to. If this is
@@ -71,6 +66,11 @@ itself in a
debian/package.install file, with no explicit destination, then dh_install
will automatically guess the destination even if this flag is not set.
+=item B<--fail-missing>
+
+This option is like --list-missing, except if a file was missed, it will
+not only list the missing files, but also fail with a nonzero exit code.
+
=item B<--list-missing>
This option makes dh_install keep track of the files it installs, and then at
@@ -84,11 +84,6 @@ you don't miss installing newly added files in new upstream releases.
Note that files that are excluded from being moved via the -X option are not
warned about.
-=item B<--fail-missing>
-
-This option is like --list-missing, except if a file was missed, it will
-not only list the missing files, but also fail with a nonzero exit code.
-
=item B<--sourcedir=dir>
Makes all source files be found under dir. If this is specified, it is
@@ -100,6 +95,11 @@ package.files file to package.install and call dh_install with
approximate dh_movefiles behaviour, except it will copy files instead
of moving them.
+=item B<-Xitem>, B<--exclude=item>
+
+Exclude files that contain "item" anywhere in their filename from
+being installed.
+
=item I<file [...] dest>
Lists files (or directories) to install and where to install them to.
@@ -109,7 +109,11 @@ The files will be installed into the first package dh_install acts on.
=cut
-init();
+init(options => {
+ "autodest" => \$dh{AUTODEST},
+ "list-missing" => \$dh{LIST_MISSING},
+ "fail-missing" => \$dh{FAIL_MISSING},
+});
my @installed;