#! /bin/sh # # r-doc-pdf.preinst # # Written and GPL'ed by Dirk Eddelbuettel set -e case "$1" in install|upgrade) # we want symlinks to r-base so old directories cannot exist test -d /usr/share/doc/r-doc-pdf && rm -rf /usr/share/doc/r-doc-pdf ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 0 ;; esac #DEBHELPER# exit 0