diff options
author | David Bremner <bremner@debian.org> | 2015-09-22 09:23:12 -0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2015-09-22 09:23:12 -0300 |
commit | 28c9a694796c6ddac89b03da1980c5a908d8737f (patch) | |
tree | 97578977243c2548612c489a7d02b9a21881dad8 /emacsen-common/remove | |
parent | 43ff615bb4f5bd9cd5f21a06cabf5cc7c0163fd6 (diff) |
update templates to rely on substitution
Diffstat (limited to 'emacsen-common/remove')
-rwxr-xr-x | emacsen-common/remove | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/emacsen-common/remove b/emacsen-common/remove index 58021f9..dfa0df7 100755 --- a/emacsen-common/remove +++ b/emacsen-common/remove @@ -2,13 +2,10 @@ # /usr/lib/emacsen-common/packages/remove/foo set -e -PACKAGE=$DPKG_MAINTSCRIPT_PACKAGE -VERSION=$(dpkg-query -Wf '${Version}' $PACKAGE) -UPSTREAM_VERSION=${VERSION%-*} -ELPA_PACKAGE=${PACKAGE#elpa-}-${UPSTREAM_VERSION} +ELPA_DIR=#ELPAPACKAGE#-#ELPAVERSION# FLAVOR=$1 -elc_dir=/usr/share/${FLAVOR}/site-lisp/elpa/${ELPA_PACKAGE} +elc_dir=/usr/share/${FLAVOR}/site-lisp/elpa/${ELPA_DIR} FLAVOR=$1 case $FLAVOR in @@ -16,14 +13,14 @@ case $FLAVOR in exit 0 ;; emacs23) - echo remove/${ELPA_PACKAGE}: Skipping obsolete emacs ${FLAVOUR} + echo remove/${ELPA_DIR}: Skipping obsolete emacs ${FLAVOUR} exit 0 ;; xemacs*) - echo remove/${ELPA_PACKAGE}: Skipping unsupported emacs ${FLAVOUR} + echo remove/${ELPA_DIR}: Skipping unsupported emacs ${FLAVOUR} ;; *) - echo remove/${ELPA_PACKAGE}: Handling removal of emacsen flavor ${FLAVOR} + echo remove/${ELPA_DIR}: Handling removal of emacsen flavor ${FLAVOR} esac echo dh-elpa: purging flavor specific files for ${FLAVOR} |