File: emacsen-install.old

package info (click to toggle)
wl 2.8.1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,600 kB
  • ctags: 2,951
  • sloc: lisp: 40,584; sh: 148; makefile: 100
file content (43 lines) | stat: -rw-r--r-- 1,188 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/sh -e
#  /usr/lib/emacsen-common/packages/install/foo
# [ This particular script hasn't been tested, so be careful. ]
set -e

FLAVOR=$1

# Fix compile error with xemacs20 on unset LANG or LANG=C .
export LANG=ja_JP

el_dir=/usr/share/emacs/site-lisp/wl/
elc_dir=/usr/share/${FLAVOR}/site-lisp/wl/

if [ ${FLAVOR} = xemacs20 ]
then
  flags="-batch -q -no-site-file -l ./add-semi-path.el"
else
  flags="-batch -q -no-site-file"
fi

if [ ${FLAVOR} != emacs ]
then
		echo install/wl: Handling install of emacsen flavor ${FLAVOR}
    echo install/wl: byte-compiling for ${FLAVOR}

		rm -rf ${elc_dir}
    install -m 755 -d ${elc_dir}

    # Byte compile them
    (cd ${el_dir}
				cp utils/*.el ${elc_dir}
        rm -f ${elc_dir}compile.log
        make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} > ${elc_dir}compile.log 2>&1
        make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} install >> ${elc_dir}compile.log 2>&1
        make FLAGS="${flags}" EMACS=${FLAVOR} ELISPDIR=${elc_dir} clean >> ${elc_dir}compile.log 2>&1
         echo "Compilation log for ${FLAVOR} saved to ${elc_dir}compile.log"
		)

else
		echo "Ignoring emacsen flavor ${FLAVOR}"
fi

exit 0;