| 1 |
#! /bin/sh -e |
| 2 |
# /usr/lib/emacsen-common/packages/install/cylc-el |
| 3 |
|
| 4 |
# Written by Jim Van Zandt <[email protected]>, borrowing heavily |
| 5 |
# from the install scripts for gettext by Santiago Vila |
| 6 |
# <[email protected]> and octave by Dirk Eddelbuettel <[email protected]>. |
| 7 |
# Adapted for cylc by Alastair McKinstry <[email protected]> |
| 8 |
|
| 9 |
FLAVOR=$1 |
| 10 |
PACKAGE=cylc |
| 11 |
|
| 12 |
if [ ${FLAVOR} = emacs ]; then exit 0; fi |
| 13 |
|
| 14 |
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} |
| 15 |
FLAGS=" -q -batch -l path.el -f batch-byte-compile" |
| 16 |
|
| 17 |
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} |
| 18 |
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} |
| 19 |
ELRELDIR=../../../emacs/site-lisp/${PACKAGE} |
| 20 |
|
| 21 |
|
| 22 |
install -m 755 -d ${ELCDIR} |
| 23 |
cd ${ELDIR} |
| 24 |
FILES=`echo *.el` |
| 25 |
cd ${ELCDIR} |
| 26 |
ln -sf ${ELRELDIR}/*.el . |
| 27 |
|
| 28 |
cat << EOF > path.el |
| 29 |
(debian-pkg-add-load-path-item ".") |
| 30 |
(setq byte-compile-warnings nil) |
| 31 |
EOF |
| 32 |
${FLAVOR} ${FLAGS} ${FILES} |
| 33 |
rm -f path.el |
| 34 |
|
| 35 |
exit 0 |