X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=debian%2Fprerm;h=ba7b3df3b9b110c546066ad54d45b8ce29faaa06;hb=0ab0bd14542954a69478d6885403dae64c7c6f54;hp=dc19579dd33aa195cf806435ad2f2a56cd195523;hpb=7a53250922d58d1d1131eb45419ed74bc93fc160;p=developers-reference.git diff --git a/debian/prerm b/debian/prerm index dc19579..ba7b3df 100644 --- a/debian/prerm +++ b/debian/prerm @@ -1,7 +1,12 @@ #!/bin/sh -if [ -x /usr/sbin/install-docs ]; then - /usr/sbin/install-docs -r developers-reference +if [ "$1" = "remove" -o "$1" = "upgrade" ]; then + if command -v install-docs >/dev/null 2>&1; then + install-docs -r developers-reference + fi + if [ -L /usr/doc/developers-reference ]; then + rm -f /usr/doc/developers-reference + fi fi exit 0