2 # /usr/lib/emacsen-common/packages/install/bashdb
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>.
11 if [ ${FLAVOR} = emacs ]; then exit 0; fi
13 # bashdb's gud.el doesn't support emacs20
14 if [ ${FLAVOR} = emacs20 ]; then exit 0; fi
16 FILES="bashdb.el gud.el"
18 echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
20 #FLAVORTEST=`echo $FLAVOR | cut -c-6`
21 #if [ ${FLAVORTEST} = xemacs ] ; then
22 # SITEFLAG="-no-site-file"
24 # SITEFLAG="--no-site-file"
26 FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
28 ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
29 ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
31 # Install-info-altdir does not actually exist.
32 # Maybe somebody will write it.
33 if test -x /usr/sbin/install-info-altdir; then
34 echo install/${PACKAGE}: install Info links for ${FLAVOR}
35 install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} \
36 /usr/share/info/${PACKAGE}.info.gz
39 install -m 755 -d ${ELCDIR}
45 (setq load-path (cons "." load-path) byte-compile-warnings nil)
47 ${FLAVOR} ${FLAGS} ${FILES}