summaryrefslogtreecommitdiff
path: root/dh_installchangelogs
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:58:44 +0000
committerjoey <joey>1999-08-17 04:58:44 +0000
commit0287a9cbf507569b92fa157fb002a4ead079bbdb (patch)
tree313b23c7a754168412793181aaacc2d523c3361e /dh_installchangelogs
parent225d86509ae859057d89f3ad88c1b6de7c8e98ba (diff)
downloaddebhelper-0287a9cbf507569b92fa157fb002a4ead079bbdb.tar.gz
r116: Initial Import
Diffstat (limited to 'dh_installchangelogs')
-rwxr-xr-xdh_installchangelogs5
1 files changed, 5 insertions, 0 deletions
diff --git a/dh_installchangelogs b/dh_installchangelogs
index 0024fc10..97e057b7 100755
--- a/dh_installchangelogs
+++ b/dh_installchangelogs
@@ -43,5 +43,10 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
if ($upstream) {
doit("install","-p","-m644",$upstream,"$TMP/usr/doc/$PACKAGE/changelog");
+ if ($dh{K_FLAG}) {
+ # Install symlink to original name of the upstream changelog file.
+ # Use basename in case original file was in a subdirectory or something.
+ doit("ln","-sf","changelog","$TMP/usr/doc/$PACKAGE/".Dh_Lib::basename($upstream));
+ }
}
}