From f7a2d2080fcb22d459ddeb4b77c24c12fdb031da Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 7 Sep 1999 01:01:29 +0000 Subject: r269: Added --- autoscripts/postinst-doc | 5 +++++ autoscripts/prerm-doc | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 autoscripts/postinst-doc create mode 100644 autoscripts/prerm-doc (limited to 'autoscripts') 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 -- cgit v1.2.3