X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fpreinst.template;h=e0b5f37034e51b0c1fbbd77b952c1870eb80d203;hb=eaaca94287230a65c80cc21effa5763520552fe4;hp=d8eb1f68e372c73f03911e61636986a67ee24918;hpb=a5caa2890a1c532bd5c7e736034ad9d2b0037271;p=clsql.git diff --git a/debian/preinst.template b/debian/preinst.template index d8eb1f6..e0b5f37 100755 --- a/debian/preinst.template +++ b/debian/preinst.template @@ -1,16 +1,18 @@ -#!/bin/bash +#!/bin/sh # This is part of clsql program: # http://clsql.med-info.com # # Copyright (c) 2002 Kevin M. Rosenberg -pkg:=%% +set -e + +pkg=%% +dir=/usr/share/common-lisp/source/$pkg case "$1" in install|upgrade|abort-upgrade) - rm -rf /usr/share/common-lisp-source/${pkg} - rm -rf /usr/share/common-lisp-source/${pkg}-[0-9\.]+ - + test -h $dir && rm $dir + rm -rf ${dir}-[0-9\.]* ;; *) echo "preinst called with unknown argument '$1'" >&2