| Revision 3458,
825 bytes
checked in by munepi, 15 years ago
(diff) |
|
NEW: added lua-mode
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #! /bin/sh -e |
|---|
| 2 | # /usr/lib/emacsen-common/packages/install/lua-mode |
|---|
| 3 | |
|---|
| 4 | FLAVOR=$1 |
|---|
| 5 | PACKAGE=lua-mode |
|---|
| 6 | |
|---|
| 7 | FLAGS="--no-site-file -q -batch -l ./lua-mode.el -f batch-byte-compile" |
|---|
| 8 | |
|---|
| 9 | ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}" |
|---|
| 10 | ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}" |
|---|
| 11 | STARTDIR=/etc/${FLAVOR}/site-start.d |
|---|
| 12 | STARTFILE="${PACKAGE}-init.el" |
|---|
| 13 | |
|---|
| 14 | SOURCES="lua-mode.el" |
|---|
| 15 | |
|---|
| 16 | case "${FLAVOR}" in |
|---|
| 17 | *) |
|---|
| 18 | echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..." |
|---|
| 19 | install -m 755 -d ${ELCDIR} |
|---|
| 20 | cd ${ELDIR} |
|---|
| 21 | cp *.el ${ELCDIR} |
|---|
| 22 | FILES="${SOURCES}" |
|---|
| 23 | cd ${ELCDIR} |
|---|
| 24 | ## do not byte-compile lua-mode.el |
|---|
| 25 | ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1 |
|---|
| 26 | rm -f ${SOURCES} |
|---|
| 27 | gzip -9 ${ELCDIR}/CompilationLog |
|---|
| 28 | |
|---|
| 29 | ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE}; |
|---|
| 30 | echo " done." |
|---|
| 31 | ;; |
|---|
| 32 | esac |
|---|
| 33 | |
|---|
| 34 | exit 0 ; |
|---|
Note: See
TracBrowser
for help on using the repository browser.