2
2
# /usr/lib/emacsen-common/packages/install/ecasound-el
4
# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
5
# from the install scripts for gettext by Santiago Vila
6
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
7
# modified by Junichi Uekawa for ecasound, 11 Jan 2003
7
if [ ${FLAVOR} = emacs ]; then exit 0; fi
19
9
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
21
#FLAVORTEST=`echo $FLAVOR | cut -c-6`
22
#if [ ${FLAVORTEST} = xemacs ] ; then
23
# SITEFLAG="-no-site-file"
25
# SITEFLAG="--no-site-file"
27
11
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
29
13
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
30
14
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
32
# Install-info-altdir does not actually exist.
33
# Maybe somebody will write it.
34
if test -x /usr/sbin/install-info-altdir; then
35
echo install/${PACKAGE}: install Info links for ${FLAVOR}
36
install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
39
16
install -m 755 -d ${ELCDIR}
19
ln -sf ${ELDIR}/*.el ${ELCDIR}
45
22
cat << EOF > path.el
46
23
(setq load-path (cons "." load-path) byte-compile-warnings nil)
48
25
${FLAVOR} ${FLAGS} ${FILES}