source: projects/specs/trunk/u/uim/uim-el-install.sh @ 1720

Revision 1720, 852 bytes checked in by iwaim, 10 years ago (diff)

uim 1.6.0-2

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