summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>1999-09-07 01:01:29 +0000
committerjoey <joey>1999-09-07 01:01:29 +0000
commitf7a2d2080fcb22d459ddeb4b77c24c12fdb031da (patch)
tree5b8bbf072c38101096f84488faa185d716eb56a5 /autoscripts
parent7c22a1819a669b43bf20f9ab3d744daec4aca377 (diff)
downloaddebhelper-f7a2d2080fcb22d459ddeb4b77c24c12fdb031da.tar.gz
r269: Added
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-doc5
-rw-r--r--autoscripts/prerm-doc3
2 files changed, 8 insertions, 0 deletions
diff --git a/autoscripts/postinst-doc b/autoscripts/postinst-doc
new file mode 100644
index 00000000..a4b000ba
--- /dev/null
+++ b/autoscripts/postinst-doc
@@ -0,0 +1,5 @@
+if [ "$1" = "configure" ]; then
+ if [ -d /usr/doc -a ! -e /usr/doc/#PACKAGE# -a -d /usr/share/doc/#PACKAGE# ]; then
+ ln -sf ../share/doc/#PACKAGE# /usr/doc/#PACKAGE#
+ fi
+fi
diff --git a/autoscripts/prerm-doc b/autoscripts/prerm-doc
new file mode 100644
index 00000000..5ae92d71
--- /dev/null
+++ b/autoscripts/prerm-doc
@@ -0,0 +1,3 @@
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/#PACKAGE# ]; then
+ rm -f /usr/doc/#PACKAGE#
+fi