* Documented what globbing is allowed.
In many cases, these config files are used to specify various types of
files. Documentation or example files to install, files to move, and so on.
When appropriate, in cases like these, you can use standard shell wildcard
-characters ('?' and '*') in the files.
+characters ('?' and '*' and '[..]' character classes) in the files.
=head1 SHARED DEBHELPER OPTIONS
+debhelper (4.0.9) unstable; urgency=low
+
+ * dh_install: glob relative to --sourcedir. Closes: #147908
+ * Documented what globbing is allowed.
+
+ -- Joey Hess <joeyh@debian.org> Thu, 23 May 2002 12:28:30 -0400
+
debhelper (4.0.8) unstable; urgency=low
* Don't leak regex characters from -X when generating DH_EXCLUDE_FIND.
@install=filedoublearray($file); # no globbing yet
}
- $srcdir = $dh{SOURCEDIR} if defined $dh{SOURCEDIR};
+ $srcdir = $dh{SOURCEDIR}."/" if defined $dh{SOURCEDIR};
if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
push @install, [@ARGV];
if (! defined $dh{AUTODEST} && @$set > 1) {
$dest=pop @$set;
}
-
- foreach my $src (map { glob } @$set) { # glob now
+ # glob now, relative to srcdir
+ foreach my $src (map { glob "$srcdir/$_" } @$set) {
next if excludefile($src);
if (! defined $dest) {
$dest=dirname($dest);
}
- $src = "$srcdir/$src"; # do this now, to avoid the parsing above
-
# Make sure the destination directory exists.
if (! -e "$tmp/$dest") {
doit("install","-d","$tmp/$dest");