summaryrefslogtreecommitdiff
path: root/dh_install
diff options
context:
space:
mode:
authorjoey <joey>2002-11-11 00:24:01 +0000
committerjoey <joey>2002-11-11 00:24:01 +0000
commit7f71481a6aeb182fdd37769c22de19ef7fed9cb7 (patch)
treea0a415f8409ef28d90079a3d9f06ddf1d4bd8006 /dh_install
parentc0d066ddce232280756df9c5b218c3c6145001bb (diff)
r560: * typo in dh_shlibdeps(1), Closes: #167421
* dh_movefiles: make --list-missing respect --sourcedir. Closes: #168441
Diffstat (limited to 'dh_install')
-rwxr-xr-xdh_install20
1 files changed, 11 insertions, 9 deletions
diff --git a/dh_install b/dh_install
index d6f1f1b..9b03d46 100755
--- a/dh_install
+++ b/dh_install
@@ -69,9 +69,9 @@ will automatically guess the destination even if this flag is not set.
=item B<--list-missing>
This option makes dh_install keep track of the files it installs, and then at
-the end, compare that list with the files in debian/tmp. If any of the files
-(and symlinks) in debian/tmp were not installed to somewhere, it will
-warn on stderr about that.
+the end, compare that list with the files in the source directory. If any of
+the files (and symlinks) in the source directory were not installed to
+somewhere, it will warn on stderr about that.
This may be useful if you have a large package and want to make sure that
you don't miss installing newly added files in new upstream releases.
@@ -79,10 +79,12 @@ 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.
+You need to use the --sourcedir parameter for this one to be of much use.
+
=item B<--sourcedir=dir>
-Makes all source files be found under dir. If this is specified, it is akin
-to all the source filenames having "dir/" prepended to them.
+Makes all source files be found under dir. If this is specified, it is
+akin to all the source filenames having "dir/" prepended to them.
To make dh_install behave like the old dh_movefiles, move your
package.files file to package.install and call dh_install with
@@ -103,18 +105,18 @@ init();
my @installed;
+my $srcdir = '.';
+$srcdir = $dh{SOURCEDIR}."/" if defined $dh{SOURCEDIR};
+
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp=tmpdir($package);
my $file=pkgfile($package,"install");
- my $srcdir = '.';
my @install;
if ($file) {
@install=filedoublearray($file); # no globbing yet
}
- $srcdir = $dh{SOURCEDIR}."/" if defined $dh{SOURCEDIR};
-
if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
push @install, [@ARGV];
}
@@ -178,7 +180,7 @@ if ($dh{LIST_MISSING}) {
-f || -l || return;
$_="$File::Find::dir/$_";
push @missing, $_ unless /$installed/;
- }, './debian/tmp');
+ }, $srcdir);
if (@missing) {
warning "$_ not installed" foreach @missing;
}