source: projects/specs/trunk/j/js2-mode/js2-mode-install.sh @ 741

Revision 741, 694 bytes checked in by iwaim, 14 years ago (diff)

add: js2-mode spec and files

  • 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        install -m 755 -d ${ELCDIR}
23        cd ${ELDIR}
24        cp *.el ${ELCDIR}
25        FILES="${SOURCES}"
26        cd ${ELCDIR}
27        ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
28        rm -f ${SOURCES}
29        gzip -9 ${ELCDIR}/CompilationLog
30       
31        ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE};
32        echo " done."
33        ;;
34esac
35
36exit 0 ;
Note: See TracBrowser for help on using the repository browser.