2 # /usr/lib/emacsen-common/packages/install/notmuch-emacs
4 # Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
5 # from the install scripts for gettext by Santiago Vila
6 # <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
11 if [ ${FLAVOR} = emacs ]; then exit 0; fi
13 # We know that the notmuch emacs code doesn't work with emacs before emacs23
14 if [ ${FLAVOR} = emacs21 ]; then exit 0; fi
15 if [ ${FLAVOR} = emacs22 ]; then exit 0; fi
16 if [ ${FLAVOR} = xemacs21 ]; then exit 0; fi
17 if [ ${FLAVOR} = xemacs22 ]; then exit 0; fi
19 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 #FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
28 FLAGS="--no-site-file -q -batch -l path.el -f batch-byte-compile"
30 ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
31 ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
33 install -m 755 -d ${ELCDIR}
37 for file in ${FILES}; do
38 ln -sf ${ELDIR}/${file} .
42 (setq load-path (cons "." load-path) byte-compile-warnings nil)
44 ${FLAVOR} ${FLAGS} ${FILES}