From: joey Date: Tue, 7 Sep 1999 01:01:29 +0000 (+0000) Subject: r269: Added X-Git-Tag: version_2.0.101~329 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f7a2d2080fcb22d459ddeb4b77c24c12fdb031da;p=debhelper.git r269: Added --- diff --git a/autoscripts/postinst-doc b/autoscripts/postinst-doc new file mode 100644 index 0000000..a4b000b --- /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 0000000..5ae92d7 --- /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