r2277: Autocommit for make-debian
[clsql.git] / debian / preinst.template
index fba33ace3c764199034fc3f728d9264395335f78..b8f6c195b2d0a1f7b1d85319855162a2d80b6b5a 100755 (executable)
@@ -5,11 +5,12 @@
 # Copyright (c) 2002 Kevin M. Rosenberg
 
 pkg=%%
+dir=/usr/share/common-lisp-source/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\.]+
 
        ;;
     *)