X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fpreinst;fp=debian%2Fpreinst;h=21b6cc8384298d9a50ef7926ff72c41c5c595bb8;hb=4464cb9bed614c141d39ffaf72328cfc4d5a1452;hp=0000000000000000000000000000000000000000;hpb=372a1d77cc7663b0f5fe1c4dbabfb51cbd1fa560;p=uffi.git diff --git a/debian/preinst b/debian/preinst new file mode 100755 index 0000000..21b6cc8 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,23 @@ +#!/bin/bash +# This is part of uffi program: +# http://uffi.med-info.com +# +# Copyright (c) 2002 Kevin M. Rosenberg + +pkg=uffi +dir=/usr/share/common-lisp-source/source/$pkg + +case "$1" in + install|upgrade|abort-upgrade) + test -h $dir && rm $dir + rm -rf ${dir}-[0-9\.]+ + + ;; + *) + echo "preinst called with unknown argument '$1'" >&2 + ;; +esac + +#DEBHELPER# + +exit 0