blob: 2cd86e987b0f321c8855043889415432120be4e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# arg 1: the new package version
post_install() {
echo "updating database file... "
/usr/bin/mma -G
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
rm -f /usr/share/mma/lib/{stdlib,yamaha,kara}/.mmaDB
rm -f /usr/share/mma/MMA/*.py{c,o}
rm -fr /usr/share/mma/MMA/__pycache__
}
# arg 1: the old package version
pre_remove() {
rm -f /usr/share/mma/lib/{stdlib,yamaha,kara}/.mmaDB
rm -f /usr/share/mma/MMA/*.py{c,o}
rm -fr /usr/share/mma/MMA/__pycache__
}
op=$1
shift
$op $*
|