diff options
author | Hilko Bengen <bengen@debian.org> | 2015-06-10 00:58:46 +0200 |
---|---|---|
committer | Hilko Bengen <bengen@debian.org> | 2015-06-10 00:58:46 +0200 |
commit | 946463ca34361305ad966a87f65231c824e272fa (patch) | |
tree | b6af60e0dfcbf70c187e0e00eb042129d2de7575 | |
parent | 194b23b9abd0aa65c73601f425731a170ee759d3 (diff) |
Disabled byte-compiling for older Emacs versions as was done before (Closes: #788166)
-rwxr-xr-x | debian/emacsen-install | 7 | ||||
-rwxr-xr-x | debian/emacsen-remove | 22 |
2 files changed, 20 insertions, 9 deletions
diff --git a/debian/emacsen-install b/debian/emacsen-install index eea9e2d..659e490 100755 --- a/debian/emacsen-install +++ b/debian/emacsen-install @@ -8,7 +8,12 @@ FLAVOR=$1 PACKAGE=golang-mode -if [ ${FLAVOR} = emacs ]; then exit 0; fi +# A number of old emacs versions are not supported by upstream: +case $FLAVOR in + emacs|emacs19|emacs20|emacs21|xemacs21) + exit 0 + ;; +esac echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} diff --git a/debian/emacsen-remove b/debian/emacsen-remove index be5e0a4..dcad79b 100755 --- a/debian/emacsen-remove +++ b/debian/emacsen-remove @@ -4,12 +4,18 @@ FLAVOR=$1 PACKAGE=golang-mode -if [ ${FLAVOR} != emacs ]; then - if test -x /usr/sbin/install-info-altdir; then - echo remove/${PACKAGE}: removing Info links for ${FLAVOR} - install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/golang-mode.info.gz - fi +# A number of old emacs versions are not supported by upstream: +case $FLAVOR in + emacs|emacs19|emacs20|emacs21|xemacs21) + exit 0 + ;; + *) + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/golang-mode.info.gz + fi - echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} - rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} -fi + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} + ;; +esac |