source: projects/specs/trunk/t/tc-el/tc-el-install.sh @ 1692

Revision 1692, 1.4 KB checked in by iwaim, 14 years ago (diff)

tc-el: add files for 2.3.1-1

Line 
1#! /bin/sh -e
2# /usr/lib/emacsen-common/packages/install/t-code
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
8FLAVOR=$1
9PACKAGE=tc-el
10DATADIR=/usr/share/tc
11
12if [ ${FLAVOR} = emacs ]; then exit 0; fi
13
14echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
15
16FLAVORTEST=`echo $FLAVOR | cut -c-6`
17if [ ${FLAVORTEST} = xemacs ] ; then
18    SITEFLAG="-no-site-file"
19else
20    SITEFLAG="--no-site-file"
21fi
22FLAGS="${SITEFLAG} -q -batch -l make-elc.el -f batch-byte-compile"
23
24ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
25ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
26
27# Install-info-altdir does not actually exist.
28# Maybe somebody will write it.
29#if test -x /usr/sbin/install-info-altdir; then
30#    echo install/${PACKAGE}: install Info links for ${FLAVOR}
31#    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
32#fi
33
34install -m 755 -d ${ELCDIR}
35install -m 444 ${DATADIR}/tc-bitmap-8x16 ${ELCDIR}
36cd ${ELDIR}
37FILES=`echo *.el`
38cp ${FILES} ${ELCDIR}
39cd ${ELCDIR}
40
41cat << EOF > make-elc.el
42(setq load-path (cons "." load-path) byte-compile-warnings nil)
43(load "tc-sysdep.el")
44(and (fboundp 'set-language-environment)
45     (set-language-environment "Japanese"))
46EOF
47${FLAVOR} ${FLAGS} ${FILES}
48rm -f *.el make-elc.el
49
50exit 0
Note: See TracBrowser for help on using the repository browser.