2 # This script can be called in the following ways:
4 # Before the package is installed:
5 # <new-preinst> install
7 # Before removed package is upgraded:
8 # <new-preinst> install <old-version>
10 # Before the package is upgraded:
11 # <new-preinst> upgrade <old-version>
14 # If postrm fails during upgrade or fails on failed upgrade:
15 # <old-preinst> abort-upgrade <new-version>
17 remove_doc_symlink
() {
18 if [ -L /usr
/share
/doc
/dselect
]; then
19 rm /usr
/share
/doc
/dselect
36 echo "$0 called with unknown argument \`$1'" 1>&2