debian/emacsen-remove.ex
changeset 1 b36b9eee9c41
parent 0 4bc43250587a
equal deleted inserted replaced
0:4bc43250587a 1:b36b9eee9c41
     1 #!/bin/sh -e
     1 #!/bin/sh -e
     2 # /usr/lib/emacsen-common/packages/remove/ha-config
     2 # /usr/lib/emacsen-common/packages/remove/ha-sync
     3 
     3 
     4 FLAVOR=$1
     4 FLAVOR=$1
     5 PACKAGE=ha-config
     5 PACKAGE=ha-sync
     6 
     6 
     7 if [ ${FLAVOR} != emacs ]; then
     7 if [ ${FLAVOR} != emacs ]; then
     8     if test -x /usr/sbin/install-info-altdir; then
     8     if test -x /usr/sbin/install-info-altdir; then
     9         echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
     9         echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
    10         install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/ha-config.info.gz
    10         install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/ha-sync.info.gz
    11     fi
    11     fi
    12 
    12 
    13     echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
    13     echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
    14     rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
    14     rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
    15 fi
    15 fi