File: emacsen-install

package info (click to toggle)
lua-mode 20071122-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 92 kB
  • ctags: 98
  • sloc: lisp: 851; sh: 40; makefile: 31
file content (21 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/lua-mode
# With thanks to Dirk Eddelbuettel, Michael Olson, Santiago Vila, Jim Van Zandt.
FLAVOR=$1
PACKAGE=lua-mode
if [ ${FLAVOR} = emacs ]; then exit 0; fi
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
install -m 755 -d ${ELCDIR}
cd ${ELDIR}
FILES=`echo *.el`
cd ${ELCDIR}
ln -sf ${ELDIR}/*.el .
cat << EOF > path.el
(setq load-path (cons "." load-path) byte-compile-warnings nil)
EOF
${FLAVOR} ${FLAGS} ${FILES}
rm -f *.el path.el
exit 0