2 # /usr/lib/emacsen-common/packages/install/timidity-el
3 # $Id: timidity-el.emacsen-install,v 1.2 2003/12/27 13:31:44 hmh Exp $
5 # Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
6 # from the install scripts for gettext by Santiago Vila
7 # <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
8 # Adapted for Timidity by Martin Mitchell <martin@debian.org>.
13 if [ ${FLAVOR} = emacs ]; then exit 0; fi
15 echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
17 #FLAVORTEST=`echo $FLAVOR | cut -c-6`
18 #if [ ${FLAVORTEST} = xemacs ] ; then
19 # SITEFLAG="-no-site-file"
21 # SITEFLAG="--no-site-file"
23 FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
25 ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
26 ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
28 # Install-info-altdir does not actually exist.
29 # Maybe somebody will write it.
30 if test -x /usr/sbin/install-info-altdir; then
31 echo install/${PACKAGE}: install Info links for ${FLAVOR}
32 install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
35 install -m 755 -d ${ELCDIR}
42 (setq load-path (cons "." load-path) byte-compile-warnings nil)
44 ${FLAVOR} ${FLAGS} ${FILES}