source: projects/specs/trunk/l/lua-mode/lua-mode-install.sh @ 3458

Revision 3458, 825 bytes checked in by munepi, 13 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
4FLAVOR=$1
5PACKAGE=lua-mode
6
7FLAGS="--no-site-file -q -batch -l ./lua-mode.el -f batch-byte-compile"
8
9ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}"
10ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}"
11STARTDIR=/etc/${FLAVOR}/site-start.d
12STARTFILE="${PACKAGE}-init.el"
13
14SOURCES="lua-mode.el"
15
16case "${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    ;;
32esac
33
34exit 0 ;
Note: See TracBrowser for help on using the repository browser.