Revision 1692,
1.4 KB
checked in by iwaim, 14 years ago
(diff) |
tc-el: add files for 2.3.1-1
|
Rev | Line | |
---|
[1692] | 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 | |
---|
| 8 | FLAVOR=$1 |
---|
| 9 | PACKAGE=tc-el |
---|
| 10 | DATADIR=/usr/share/tc |
---|
| 11 | |
---|
| 12 | if [ ${FLAVOR} = emacs ]; then exit 0; fi |
---|
| 13 | |
---|
| 14 | echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} |
---|
| 15 | |
---|
| 16 | FLAVORTEST=`echo $FLAVOR | cut -c-6` |
---|
| 17 | if [ ${FLAVORTEST} = xemacs ] ; then |
---|
| 18 | SITEFLAG="-no-site-file" |
---|
| 19 | else |
---|
| 20 | SITEFLAG="--no-site-file" |
---|
| 21 | fi |
---|
| 22 | FLAGS="${SITEFLAG} -q -batch -l make-elc.el -f batch-byte-compile" |
---|
| 23 | |
---|
| 24 | ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} |
---|
| 25 | ELCDIR=/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 | |
---|
| 34 | install -m 755 -d ${ELCDIR} |
---|
| 35 | install -m 444 ${DATADIR}/tc-bitmap-8x16 ${ELCDIR} |
---|
| 36 | cd ${ELDIR} |
---|
| 37 | FILES=`echo *.el` |
---|
| 38 | cp ${FILES} ${ELCDIR} |
---|
| 39 | cd ${ELCDIR} |
---|
| 40 | |
---|
| 41 | cat << 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")) |
---|
| 46 | EOF |
---|
| 47 | ${FLAVOR} ${FLAGS} ${FILES} |
---|
| 48 | rm -f *.el make-elc.el |
---|
| 49 | |
---|
| 50 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.