source: projects/specs/trunk/i/ibus-el/ibus-el-install.sh @ 1163

Revision 1163, 778 bytes checked in by iwaim, 14 years ago (diff)

ibus-el 0.1.0-1 (new)

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