summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
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