diff options
author | joey <joey> | 1999-09-07 01:01:29 +0000 |
---|---|---|
committer | joey <joey> | 1999-09-07 01:01:29 +0000 |
commit | f7a2d2080fcb22d459ddeb4b77c24c12fdb031da (patch) | |
tree | 5b8bbf072c38101096f84488faa185d716eb56a5 /autoscripts | |
parent | 7c22a1819a669b43bf20f9ab3d744daec4aca377 (diff) | |
download | debhelper-f7a2d2080fcb22d459ddeb4b77c24c12fdb031da.tar.gz |
r269: Added
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-doc | 5 | ||||
-rw-r--r-- | autoscripts/prerm-doc | 3 |
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 |