diff options
author | David Bremner <bremner@debian.org> | 2019-09-02 12:06:46 -0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2019-09-02 12:06:46 -0300 |
commit | f37b03503507f3b0c57247c61d2c4c803be09c66 (patch) | |
tree | bf7721979749a82d8b4c934113dc54492610ec92 /emacsen-common/remove | |
parent | 5cf31bfea2c7567939ddc65db23188942e7521e6 (diff) |
initial attempt at moving maint scripts into helper package
This commit is a bit bug, but at least it is atomic.
Diffstat (limited to 'emacsen-common/remove')
-rwxr-xr-x | emacsen-common/remove | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/emacsen-common/remove b/emacsen-common/remove index b03204a..5d1d6af 100755 --- a/emacsen-common/remove +++ b/emacsen-common/remove @@ -1,37 +1,6 @@ #!/bin/sh -# /usr/lib/emacsen-common/packages/remove/foo -set -e - -unset HOME - -ELPA_DIR=#ELPAPACKAGE#-#ELPAVERSION# +# invoke from /usr/lib/emacsen-common/packages/remove/${PACKAGE} -FLAVOR=$1 -elpa_root="/usr/share/${FLAVOR}/site-lisp/elpa" -elc_dir="${elpa_root}/${ELPA_DIR}" - -FLAVOR=$1 -case $FLAVOR in - emacs2[0123]*) - echo remove/${ELPA_DIR}: Skipping obsolete emacs ${FLAVOR} - exit 0 - ;; - xemacs*) - echo remove/${ELPA_DIR}: Skipping unsupported emacs ${FLAVOR} - exit 0 - ;; - *) - echo remove/${ELPA_DIR}: Handling removal of emacsen flavor ${FLAVOR} -esac - -echo dh-elpa: purging flavor specific files for ${FLAVOR} -rm -f ${elc_dir}/*.elc -[ -d ${elc_dir} ] && find ${elc_dir} -type l -delete -rm -f ${elc_dir}/Install.log* -if test -e "${elc_dir}" -then - rmdir --ignore-fail-on-non-empty "${elc_dir}" - rmdir --ignore-fail-on-non-empty "${elpa_root}" -fi +set -e -exit 0; +/usr/lib/dh-elpa/helper/remove $1 #ELPAPACKAGE# #ELPAVERSION# #EMACSLOADPATH# |