~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to debian/in.gcl.emacsen-install

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
# /usr/lib/emacsen-common/packages/install/#PACKAGE#
 
3
 
 
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>.
 
7
 
 
8
FLAVOR=$1
 
9
PACKAGE=gcl@EXT@
 
10
 
 
11
if [ ${FLAVOR} = emacs ]; then exit 0; fi
 
12
 
 
13
echo 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
 
21
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
 
22
 
 
23
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
 
24
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
 
25
 
 
26
# Install-info-altdir does not actually exist. 
 
27
# Maybe somebody will write it.
 
28
if 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/info/${PACKAGE}.info.gz
 
31
fi
 
32
 
 
33
install -m 755 -d ${ELCDIR}
 
34
cd ${ELDIR}
 
35
FILES=`echo *.el`
 
36
cp ${FILES} ${ELCDIR}
 
37
cd ${ELCDIR}
 
38
 
 
39
cat << EOF > path.el
 
40
(setq load-path (cons "." load-path) byte-compile-warnings nil)
 
41
EOF
 
42
${FLAVOR} ${FLAGS} ${FILES}
 
43
rm -f *.el path.el
 
44
 
 
45
exit 0
 
46