update to debhelper 5
[clsql.git] / debian / preinst.template
old mode 100755 (executable)
new mode 100644 (file)
index b8f6c19..e0b5f37
@@ -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