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

Revision 9515, 783 bytes checked in by inagaki, 9 years ago (diff)

2015-04-17 Ryoichi INAGAKI <ryo1@…>

  • auto-install, js2-mode, lua-mode, migemo, php-mode, po-mode: updated


  • 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-mode.el js2-imenu-extras.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.