summaryrefslogtreecommitdiff
path: root/dh_installchangelogs
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-24 22:18:06 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-24 22:18:06 -0400
commit91cff31c05aafa8f9f00c34279d1b499fc0acead (patch)
treea20debca45fa5bc4217b0dd17ced1b249c93be53 /dh_installchangelogs
parent7c5bc6e083749516d426d22d675ee0b93fd65e16 (diff)
dh_install: Find all possible cases of "changelog" and "changes", rather
than just looking for some predefined common cases.
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-xdh_installchangelogs8
1 files changed, 5 insertions, 3 deletions
diff --git a/dh_installchangelogs b/dh_installchangelogs
index 339313a..3d7be50 100755
--- a/dh_installchangelogs
+++ b/dh_installchangelogs
@@ -67,9 +67,11 @@ my $upstream=shift;
my $changelog_name="changelog.Debian";
if (! defined $upstream) {
if (! isnative($dh{MAINPACKAGE}) && !compat(6)) {
- foreach my $name (qw{ChangeLog Changelog Changes CHANGES changelog}) {
- if (-e $name) {
- $upstream=$name;
+ my @files=sort glob("*");
+ foreach my $name (qw{changelog changes}) {
+ my @matches=grep { lc $_ eq $name } @files;
+ if (@matches) {
+ $upstream=shift @matches;
last;
}
}