]> git.zerfleddert.de Git - hmcfgusb/blame - debian/emacsen-install.ex
Add missing break in switch
[hmcfgusb] / debian / emacsen-install.ex
CommitLineData
b5850466
J
1#! /bin/sh -e
2# /usr/lib/emacsen-common/packages/install/hmcfgusb
3
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>.
7
8FLAVOR=$1
9PACKAGE=hmcfgusb
10
11if [ ${FLAVOR} = emacs ]; then exit 0; fi
12
13echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
14
15#FLAVORTEST=`echo $FLAVOR | cut -c-6`
16#if [ ${FLAVORTEST} = xemacs ] ; then
17# SITEFLAG="-no-site-file"
18#else
19# SITEFLAG="--no-site-file"
20#fi
21FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
22
23ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
24ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
25
26# Install-info-altdir does not actually exist.
27# Maybe somebody will write it.
28if test -x /usr/sbin/install-info-altdir; then
29 echo install/${PACKAGE}: install Info links for ${FLAVOR}
30 install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
31fi
32
33install -m 755 -d ${ELCDIR}
34cd ${ELDIR}
35FILES=`echo *.el`
36cp ${FILES} ${ELCDIR}
37cd ${ELCDIR}
38
39cat << EOF > path.el
40(setq load-path (cons "." load-path) byte-compile-warnings nil)
41EOF
42${FLAVOR} ${FLAGS} ${FILES}
43rm -f *.el path.el
44
45exit 0
Impressum, Datenschutz