summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
authorjoey <joey>1999-09-20 19:46:13 +0000
committerjoey <joey>1999-09-20 19:46:13 +0000
commit7e9ba39074d0d4b1100dbce3e79320797ef3f6ee (patch)
treed9c39826da72d97fe58a4c8cb35fe855ad66b909 /dh_installdocs
parent496b6f60c8155eefe5494da494e0468b82e0226f (diff)
r281: * dh_installdocs: create the compatability symlink before calling
install-docs. I'm told this is better in some cases. (Closes: #45608) * examples/rules.multi2: clarified what you have to comment/uncomment.
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs23
1 files changed, 11 insertions, 12 deletions
diff --git a/dh_installdocs b/dh_installdocs
index d6c11c8..a94a514 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",
- );
- }
}