File: remove

package info (click to toggle)
debview 1.7-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 100 kB
  • ctags: 28
  • sloc: lisp: 333; sh: 82; makefile: 40
file content (20 lines) | stat: -rwxr-xr-x 738 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
# /usr/lib/emacsen-common/packages/remove/debview
set -e

FLAVOR=$1
echo remove/debview: Handling removal of emacsen flavor ${FLAVOR}

if [ ${FLAVOR} != emacs ]; then
    echo emacsen-common: purging byte-compiled files for ${FLAVOR}
    rm -f /usr/share/${FLAVOR}/site-lisp/debview/deb-view.elc
    rm -f /usr/share/${FLAVOR}/site-lisp/debview/install.log

    # Someone could conceivably have deposited some extra files
    # into the debview directory.  We don't really want to fail
    # in that case, and we don't really want to remove them,
    # either, since they don't belong to us.  So always succeed,
    # whether the directory was removed or not.
    rmdir /usr/share/${FLAVOR}/site-lisp/debview || true
fi
exit 0