summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs15
1 files changed, 13 insertions, 2 deletions
diff --git a/dh_installdocs b/dh_installdocs
index 7af3809..50bc171 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -39,10 +39,21 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$readme_debian=pkgfile($PACKAGE,'README.Debian');
if (! $readme_debian) {
$readme_debian=pkgfile($PACKAGE,'README.debian');
+ if (! $readme_debian) {
+ $readme_debian=pkgfile($PACKAGE,'README');
+ }
}
if ($readme_debian) {
- doit("install","-g",0,"-o",0,"-m","644","-p","$readme_debian",
- "$TMP/usr/share/doc/$PACKAGE/README.Debian");
+ if (isnative($PACKAGE)) {
+ doit("install","-g",0,"-o",0,"-m","644","-p",
+ $readme_debian,
+ "$TMP/usr/share/doc/$PACKAGE/README");
+ }
+ else {
+ doit("install","-g",0,"-o",0,"-m","644","-p",
+ $readme_debian,
+ "$TMP/usr/share/doc/$PACKAGE/README.Debian");
+ }
}
$todo=pkgfile($PACKAGE,'TODO');