source: projects/specs/branches/6/j/js2-mode/js2-mode-install.sh @ 742

Revision 742, 758 bytes checked in by iwaim, 14 years ago (diff)

update: js2-mode 20090723b-2

  • Property svn:executable set to *
Line 
1#! /bin/sh -e
2# /usr/lib/emacsen-common/packages/install/js2-mode
3
4FLAVOR=$1
5PACKAGE=js2-mode
6
7FLAGS="${SITEFLAG} -q -batch -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="js2.el"
15
16case "${FLAVOR}" in
17    emacs)
18        ;;
19    xemacs*)
20        ;;
21    *) 
22        echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
23        install -m 755 -d ${ELCDIR}
24        cd ${ELDIR}
25        cp *.el ${ELCDIR}
26        FILES="${SOURCES}"
27        cd ${ELCDIR}
28        ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
29        rm -f ${SOURCES}
30        gzip -9 ${ELCDIR}/CompilationLog
31       
32        ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE};
33        echo " done."
34        ;;
35esac
36
37exit 0 ;
Note: See TracBrowser for help on using the repository browser.