1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
#! /bin/sh
# /usr/lib/emacsen-common/packages/install/bbdb
FLAVOR=$1
echo install/bbdb: Handling install of emacsen flavor ${FLAVOR}
byte_compile_options="-no-site-file -batch -f batch-byte-compile"
el_files="`cd /usr/share/emacs/site-lisp/bbdb/lisp; echo *.el`"
el_dir=/usr/share/emacs/site-lisp/bbdb
elc_dir=/usr/share/${FLAVOR}/site-lisp/bbdb
if [ ${FLAVOR} != emacs -a ${FLAVOR} != xemacs21 ]; then
if test -x /usr/sbin/install-info-altdir; then
echo install/bbdb: install Info links for ${FLAVOR}
install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/bbdb.info.gz
fi
echo install/bbdb: byte-compiling for ${FLAVOR}
cd ${el_dir}
TARGETS="rmail mhe gnus bbdb"
if [ -d /usr/share/${FLAVOR}/site-lisp/vm ]; then
TARGETS="$TARGETS vm"
elif [ ${FLAVOR} = xemacs19 -o ${FLAVOR} = xemacs20 ]; then
TARGETS="$TARGETS vm"
fi
if [ ${FLAVOR} = emacs19 ]; then
GNUSDIR=/usr/share/${FLAVOR}/site-lisp/../lisp
else
GNUSDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/gnus
fi
if [ ${FLAVOR} = emacs19 ]; then
MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp
elif [ ${FLAVOR} = xemacs19 -o ${FLAVOR} = xemacs20 ]; then
MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/mh-e
else # emacs20
MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/mail
fi
# close Bug#59177 (2000.03.28)
# Takuo Kitame <kitame@debian.org>
if [ ${FLAVOR} = xemacs20 ]; then
if [ -d /usr/share/${FLAVOR}/site-lisp/gnus ]; then
GNUSDIR=/usr/share/${FLAVOR}/site-lisp/gnus
elif [ -d /usr/share/${FLAVOR}/site-lisp/semi-gnus ]; then
GNUSDIR=/usr/share/${FLAVOR}/site-lisp/semi-gnus
elif [ -d /usr/share/${FLAVOR}/site-lisp/t-gnus ]; then
GNUSDIR=/usr/share/${FLAVOR}/site-lisp/t-gnus
elif [ -d /usr/share/${FLAVOR}/site-lisp/chaos ]; then
GNUSDIR=/usr/share/${FLAVOR}/site-lisp/chaos
else
GNUSDIR=/usr/lib/xemacs-20.4/lisp/gnus
fi
fi
LOG=`tempfile`
make -k clean > $LOG
make -k $TARGETS EMACS=${FLAVOR} VMDIR=/usr/share/${FLAVOR}/site-lisp/vm GNUSDIR=${GNUSDIR} MHEDIR=${MHEDIR} >> $LOG 2>&1
rm -rf ${elc_dir}
install -d -m 755 -p ${elc_dir}
install -m 644 lisp/*.elc ${elc_dir}
install -d -m 755 /usr/share/${FLAVOR}/site-lisp/../etc/bbdb/{tex,utils}
install -m 644 tex/* /usr/share/${FLAVOR}/site-lisp/../etc/bbdb/tex
install -m 644 utils/* /usr/share/${FLAVOR}/site-lisp/../etc/bbdb/utils
cat > ${elc_dir}/load-path.el <<EOF
(setq load-path (nconc load-path (list "${elc_dir}")))
(provide 'bbdb/load-path)
EOF
if [ ! -e ${elc_dir}/bbdb-gnus.elc ]; then
echo "*** installing not-compiled bbdb-gnus.el ***" >> $LOG
echo "install -m 644 ${el_dir}/lisp/bbdb-gnus.el ${elc_dir}" >> $LOG
install -m 644 ${el_dir}/lisp/bbdb-gnus.el ${elc_dir}
fi
make -k clean >> $LOG
mv $LOG ${elc_dir}/install.log
echo "Compilation log for ${FLAVOR} saved to ${elc_dir}/install.log"
fi
exit 0
|