summaryrefslogtreecommitdiff
path: root/debian/bbdb.emacsen-install
diff options
context:
space:
mode:
authorBarak A. Pearlmutter <barak+git@cs.nuim.ie>2010-12-12 14:51:08 +0000
committerBarak A. Pearlmutter <barak+git@cs.nuim.ie>2011-03-12 16:16:11 +0000
commit0fcee526086deeb3bac1c859bbf9f57b09972581 (patch)
treefe2f8727eb9e5e8424671f9e5645cd5bb38bbbe2 /debian/bbdb.emacsen-install
parentdcb96929cd6eda5bb1c5091ee758e7a3165e7873 (diff)
allow emacs (!) to reindent debian/bbdb.emacsen-install
Diffstat (limited to 'debian/bbdb.emacsen-install')
-rwxr-xr-xdebian/bbdb.emacsen-install162
1 files changed, 82 insertions, 80 deletions
diff --git a/debian/bbdb.emacsen-install b/debian/bbdb.emacsen-install
index 3855114..9f3c5a7 100755
--- a/debian/bbdb.emacsen-install
+++ b/debian/bbdb.emacsen-install
@@ -21,100 +21,102 @@ COMPILE="-q -batch -f batch-byte-compile"
case "${FLAVOR}" in
emacs)
- echo "install/${PACKAGE}: Ignoring Flavor ${FLAVOR} ..."
- ;;
+ echo "install/${PACKAGE}: Ignoring Flavor ${FLAVOR} ..."
+ ;;
*)
- echo "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
-
- rm -rf ${ELCDIR}
- cd ${ELDIR}
- TARGETS="rmail mhe gnus bbdb"
-
- if [ -d /usr/share/${FLAVOR}/site-lisp/vm ]; then
- TARGETS="$TARGETS vm"
- elif [ ${FLAVOR} = xemacs20 -o ${FLAVOR} = xemacs21 ]; then
- TARGETS="$TARGETS vm"
- fi
-
- if [ ${FLAVOR} = emacs19 -o ${FLAVOR} = mule2 ]; then
- MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp
- elif [ ${FLAVOR} = xemacs20 -o ${FLAVOR} = xemacs21 ]; then
- MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/mh-e
- else # emacs20
- MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/mail
- fi
-
- ## for Gnus
- 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
- fi
-
- if [ -z ${GNUSDIR} ]; then
- if [ ${FLAVOR} = emacs19 -o ${FLAVOR} = mule2 ]; then
- GNUSDIR=/usr/share/emacs/19.34/lisp
- elif [ ${FLAVOR} = xemacs20 ]; then
- GNUSDIR=/usr/lib/xemacs-20.4/lisp/gnus
- elif [ ${FLAVOR} = xemacs21 ]; then
- GNUSDIR=/usr/share/xemacs21/packages/lisp/gnus
- else
- GNUSDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/gnus
- fi
- fi
-
- LOG=`tempfile`
+ echo "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
+
+ rm -rf ${ELCDIR}
+ cd ${ELDIR}
+ TARGETS="rmail mhe gnus bbdb"
+
+ if [ -d /usr/share/${FLAVOR}/site-lisp/vm ]; then
+ TARGETS="$TARGETS vm"
+ elif [ ${FLAVOR} = xemacs20 -o ${FLAVOR} = xemacs21 ]; then
+ TARGETS="$TARGETS vm"
+ fi
+
+ if [ ${FLAVOR} = emacs19 -o ${FLAVOR} = mule2 ]; then
+ MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp
+ elif [ ${FLAVOR} = xemacs20 -o ${FLAVOR} = xemacs21 ]; then
+ MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/mh-e
+ else # emacs20
+ MHEDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/mail
+ fi
+
+ ## for Gnus
+ 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
+ fi
+
+ if [ -z ${GNUSDIR} ]; then
+ if [ ${FLAVOR} = emacs19 -o ${FLAVOR} = mule2 ]; then
+ GNUSDIR=/usr/share/emacs/19.34/lisp
+ elif [ ${FLAVOR} = xemacs20 ]; then
+ GNUSDIR=/usr/lib/xemacs-20.4/lisp/gnus
+ elif [ ${FLAVOR} = xemacs21 ]; then
+ GNUSDIR=/usr/share/xemacs21/packages/lisp/gnus
+ else
+ GNUSDIR=/usr/share/${FLAVOR}/site-lisp/../lisp/gnus
+ fi
+ fi
+
+ LOG=`tempfile`
rm -rf ${ELCDIR} && cp -a ${ELDIR} ${ELCDIR}
# at ELCDIR
( cd ${ELCDIR}
- echo "Generating bbdb-autoloads..."
- echo "Generating bbdb-autoloads" >> $LOG
- make autoloads >> $LOG 2>&1
- if [ $FLAVOR != xemacs20 -a $FLAVOR != xemacs21 ]; then
- echo "(provide 'bbdb-autoloads)" >> lisp/bbdb-autoloads.el
- fi
- echo "Byte-compiling bbdb. This takes looooooong..."
- make $TARGETS EMACS_PROG=${FLAVOR} VMDIR=/usr/share/${FLAVOR}/site-lisp/vm GNUSDIR=${GNUSDIR} MHEDIR=${MHEDIR} >> $LOG 2>&1
- mv lisp/*.elc utils/*.el .
- rm -rf tex utils lisp Makefile
- ${FLAVOR} ${COMPILE} *.el >> $LOG 2>&1
+ echo "Generating bbdb-autoloads..."
+ echo "Generating bbdb-autoloads" >> $LOG
+ make autoloads >> $LOG 2>&1
+ if [ $FLAVOR != xemacs20 -a $FLAVOR != xemacs21 ]; then
+ echo "(provide 'bbdb-autoloads)" >> lisp/bbdb-autoloads.el
+ fi
+ echo "Byte-compiling bbdb. This takes looooooong..."
+ make $TARGETS EMACS_PROG=${FLAVOR} \
+ VMDIR=/usr/share/${FLAVOR}/site-lisp/vm \
+ GNUSDIR=${GNUSDIR} \
+ MHEDIR=${MHEDIR} >> $LOG 2>&1
+ mv lisp/*.elc utils/*.el .
+ rm -rf tex utils lisp Makefile
+ ${FLAVOR} ${COMPILE} *.el >> $LOG 2>&1
)
- cat > ${ELCDIR}/load-path.el <<EOF
+ cat > ${ELCDIR}/load-path.el <<EOF
(setq load-path (cons (concat "/usr/share/${FLAVOR}/site-lisp/bbdb") load-path))
(provide 'bbdb/load-path)
EOF
- if [ ! -e ${ELCDIR}/bbdb-gnus.elc ]; then
- echo "*** installing not-compiled bbdb-gnus.el ***" >> $LOG
- echo "install -m 644 ${ELDIR}/lisp/bbdb-gnus.el ${ELCDIR}" >> $LOG
- install -m 644 ${ELDIR}/lisp/bbdb-gnus.el ${ELCDIR}
- fi
+ if [ ! -e ${ELCDIR}/bbdb-gnus.elc ]; then
+ echo "*** installing not-compiled bbdb-gnus.el ***" >> $LOG
+ echo "install -m 644 ${ELDIR}/lisp/bbdb-gnus.el ${ELCDIR}" >> $LOG
+ install -m 644 ${ELDIR}/lisp/bbdb-gnus.el ${ELCDIR}
+ fi
# a hack to fix #179821, #210248, #233904
# If bbdb gets installed before vm then the bbdb doesnt have the bbdb-vm compiled....
install -m 644 ${ELDIR}/lisp/bbdb-vm.el ${ELCDIR}
- # make -k clean >> $LOG
- mv $LOG ${ELCDIR}/CompilationLog
- gzip -9 ${ELCDIR}/CompilationLog
- chmod 644 ${ELCDIR}/CompilationLog.gz
-
- # make symlinks for source files that were not copied over to ELCDIR
- # this makes find-function and find-library work properly
- cd ${ELDIR}/lisp
- for f in *.el; do
- if [ -e ${ELCDIR}/${f}c ] && [ ! -e ${ELCDIR}/${f} ]; then
- ln -sf ${ELDIR}/lisp/${f} ${ELCDIR}/${f}
- fi
- done
-
- echo " done."
- ;;
+ # make -k clean >> $LOG
+ mv $LOG ${ELCDIR}/CompilationLog
+ gzip -9 ${ELCDIR}/CompilationLog
+ chmod 644 ${ELCDIR}/CompilationLog.gz
+
+ # make symlinks for source files that were not copied over to ELCDIR
+ # this makes find-function and find-library work properly
+ cd ${ELDIR}/lisp
+ for f in *.el; do
+ if [ -e ${ELCDIR}/${f}c ] && [ ! -e ${ELCDIR}/${f} ]; then
+ ln -sf ${ELDIR}/lisp/${f} ${ELCDIR}/${f}
+ fi
+ done
+
+ echo " done."
+ ;;
esac
-