X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=debian%2Fpreinst.template;h=e0b5f37034e51b0c1fbbd77b952c1870eb80d203;hp=fba33ace3c764199034fc3f728d9264395335f78;hb=36509b8d390e94b2b0f8e681c09d5e89452978d8;hpb=c9fd9ffa2911e702550d3c7cc2d84b8316cdf549 diff --git a/debian/preinst.template b/debian/preinst.template index fba33ac..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 +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