cubicweb-biblioviz.prerm 456 Bytes
Newer Older
Vincent Michel's avatar
Vincent Michel committed
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
26
27
#!/bin/sh -e

delete_pyo_pyc () {
  find /usr/share/cubicweb/cubes/biblioviz -name "*.pyc" | xargs rm -f
  find /usr/share/cubicweb/cubes/biblioviz -name "*.pyo" | xargs rm -f
}


case "$1" in
    failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;
    upgrade)
    delete_pyo_pyc
    ;;
    remove)
    delete_pyo_pyc
    ;;
    purge)
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

#DEBHELPER#