]> git.donarmstrong.com Git - debhelper.git/commitdiff
r269: Added
authorjoey <joey>
Tue, 7 Sep 1999 01:01:29 +0000 (01:01 +0000)
committerjoey <joey>
Tue, 7 Sep 1999 01:01:29 +0000 (01:01 +0000)
autoscripts/postinst-doc [new file with mode: 0644]
autoscripts/prerm-doc [new file with mode: 0644]

diff --git a/autoscripts/postinst-doc b/autoscripts/postinst-doc
new file mode 100644 (file)
index 0000000..a4b000b
--- /dev/null
@@ -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 (file)
index 0000000..5ae92d7
--- /dev/null
@@ -0,0 +1,3 @@
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/#PACKAGE# ]; then
+       rm -f /usr/doc/#PACKAGE#
+fi