~ubuntu-branches/ubuntu/breezy/ecasound2.2/breezy

« back to all changes in this revision

Viewing changes to debian/ecasound-el.emacsen-install

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2005-04-14 09:15:48 UTC
  • Revision ID: james.westby@ubuntu.com-20050414091548-vwu2de2157xq1hcm
Tags: 2.4.1-1
* New upstream version
- 01_ecasoundrc-location-fix: included in upstream
- 07_configure_in_maintainer_mode: updated
* removed refererence to artsc-dev
* [debian/control, debian/rules] Use automake1.9
* documentation is now in rst
- add Build-Depends: python-docutils
* debian/menu: quote
* debian/watch: add

Show diffs side-by-side

added added

removed removed

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