diff options
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-x | dh_installdocs | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/dh_installdocs b/dh_installdocs index d6c11c89..a94a5142 100755 --- a/dh_installdocs +++ b/dh_installdocs @@ -66,7 +66,17 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { doit("install","-m","644","-p",$copyright, "$TMP/usr/share/doc/$PACKAGE/copyright"); } - + + # Add in the /usr/doc compatability symlinks code. + if (! $dh{NOSCRIPTS}) { + autoscript($PACKAGE,"postinst","postinst-doc", + "s/#PACKAGE#/$PACKAGE/g", + ); + autoscript($PACKAGE,"prerm","prerm-doc", + "s/#PACKAGE#/$PACKAGE/g", + ); + } + # Handle doc-base files. There are two filename formats, the usual # plus an extended format (debian/package.*). my %doc_ids; @@ -109,15 +119,4 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { ); } } - - - # Add in the /usr/doc compatability symlinks code. - if (! $dh{NOSCRIPTS}) { - autoscript($PACKAGE,"postinst","postinst-doc", - "s/#PACKAGE#/$PACKAGE/g", - ); - autoscript($PACKAGE,"prerm","prerm-doc", - "s/#PACKAGE#/$PACKAGE/g", - ); - } } |