~ubuntu-branches/ubuntu/trusty/wl/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/emacsen-install.old

  • Committer: Bazaar Package Importer
  • Author(s): Takuo KITAME
  • Date: 2002-02-20 21:51:16 UTC
  • Revision ID: james.westby@ubuntu.com-20020220215116-urx93rysqdkmthjv
Tags: 2.8.1-3
* fix build problem (closes: #134861)
* build-depends: apel

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
#  /usr/lib/emacsen-common/packages/install/foo
 
3
# [ This particular script hasn't been tested, so be careful. ]
 
4
set -e
 
5
 
 
6
FLAVOR=$1
 
7
 
 
8
# Fix compile error with xemacs20 on unset LANG or LANG=C .
 
9
export LANG=ja_JP
 
10
 
 
11
el_dir=/usr/share/emacs/site-lisp/wl/
 
12
elc_dir=/usr/share/${FLAVOR}/site-lisp/wl/
 
13
 
 
14
if [ ${FLAVOR} = xemacs20 ]
 
15
then
 
16
  flags="-batch -q -no-site-file -l ./add-semi-path.el"
 
17
else
 
18
  flags="-batch -q -no-site-file"
 
19
fi
 
20
 
 
21
if [ ${FLAVOR} != emacs ]
 
22
then
 
23
                echo install/wl: Handling install of emacsen flavor ${FLAVOR}
 
24
    echo install/wl: byte-compiling for ${FLAVOR}
 
25
 
 
26
                rm -rf ${elc_dir}
 
27
    install -m 755 -d ${elc_dir}
 
28
 
 
29
    # Byte compile them
 
30
    (cd ${el_dir}
 
31
                                cp utils/*.el ${elc_dir}
 
32
        rm -f ${elc_dir}compile.log
 
33
        make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} > ${elc_dir}compile.log 2>&1
 
34
        make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} install >> ${elc_dir}compile.log 2>&1
 
35
        make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} clean >> ${elc_dir}compile.log 2>&1
 
36
         echo "Compilation log for ${FLAVOR} saved to ${elc_dir}compile.log"
 
37
                )
 
38
 
 
39
else
 
40
                echo "Ignoring emacsen flavor ${FLAVOR}"
 
41
fi
 
42
 
 
43
exit 0;