summaryrefslogtreecommitdiff
path: root/debian/golang-mode.emacsen-install
diff options
context:
space:
mode:
Diffstat (limited to 'debian/golang-mode.emacsen-install')
-rw-r--r--debian/golang-mode.emacsen-install36
1 files changed, 0 insertions, 36 deletions
diff --git a/debian/golang-mode.emacsen-install b/debian/golang-mode.emacsen-install
deleted file mode 100644
index c028dfdb1..000000000
--- a/debian/golang-mode.emacsen-install
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh -e
-# /usr/lib/emacsen-common/packages/install/golang-mode
-
-FLAVOR=$1
-PACKAGE=golang-mode
-
-# 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}
-
-# The byte-compiled files goes into the site-lisp directory.
-BCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
-install -m 755 -d ${BCDIR}
-
-# The elisp source files are in the generic site-list directory.
-SRCDIR=/usr/share/emacs/site-lisp/${PACKAGE}
-SRC=`find ${SRCDIR} -name '*.el' -exec basename '{}' ';'`
-
-# Prepare for byte-compiling the source files.
-cd ${BCDIR}
-ln -sf ${SRCDIR}/*.el .
-cat << EOF > path.el
-(setq load-path (cons "." load-path) byte-compile-warnings nil)
-EOF
-
-# Byte-compile elisp files.
-FLAGS="--no-site-file --no-init-file --batch -l path.el -f batch-byte-compile"
-${FLAVOR} ${FLAGS} ${SRC}
-rm -f path.el
-
-exit 0