~ubuntu-branches/debian/stretch/dash-el/stretch

« back to all changes in this revision

Viewing changes to debian/emacsen-install

  • Committer: Package Import Robot
  • Author(s): Hajime Mizuno
  • Date: 2014-11-21 22:21:54 UTC
  • Revision ID: package-import@ubuntu.com-20141121222154-h90h5rqw42tt6rb5
Tags: 2.10.0-1
Initial release (Closes: #770466)

Show diffs side-by-side

added added

removed removed

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