X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fpreinst.template;h=e0b5f37034e51b0c1fbbd77b952c1870eb80d203;hb=eaaca94287230a65c80cc21effa5763520552fe4;hp=b8f6c195b2d0a1f7b1d85319855162a2d80b6b5a;hpb=a24d3ebbdbb002b32134e369663932174f278e4e;p=clsql.git diff --git a/debian/preinst.template b/debian/preinst.template index b8f6c19..e0b5f37 100755 --- a/debian/preinst.template +++ b/debian/preinst.template @@ -1,17 +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/source/$pkg +dir=/usr/share/common-lisp/source/$pkg case "$1" in install|upgrade|abort-upgrade) test -h $dir && rm $dir - rm -rf ${dir}-[0-9\.]+ - + rm -rf ${dir}-[0-9\.]* ;; *) echo "preinst called with unknown argument '$1'" >&2