File: preinst

package info (click to toggle)
cl-statistics 20050224-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 164 kB
  • ctags: 102
  • sloc: lisp: 1,086; makefile: 43; sh: 12
file content (20 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -e
# Copyright (c) 2002 Kevin M. Rosenberg <kmr@debian.org>

pkg=cl-statistics
dir=/usr/share/common-lisp/source/$pkg

case "$1" in
    install|upgrade|abort-upgrade)
	test -h $dir && rm $dir 
	rm -rf ${dir}-[0-9\.]*

	;;
    *)
        echo "preinst called with unknown argument '$1'" >&2
	;;
esac

#DEBHELPER#

exit 0