skeleton/debian/DISTNAME.prerm.tmpl
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 20 Apr 2010 18:32:42 +0200
branchstable
changeset 5362 e185d708a36f
parent 0 b97547f5f1fa
permissions -rw-r--r--
[doc/book] make the .css converge back to proper cwo style, fix a bunch of typos

#!/bin/sh -e

delete_pyo_pyc () {
  find /usr/share/cubicweb/cubes/%(cubename)s -name "*.pyc" | xargs rm -f
  find /usr/share/cubicweb/cubes/%(cubename)s -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#