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

Revision 1719, 656 bytes checked in by iwaim, 12 years ago (diff)

uim 1.6.0-1: add files for emacs lisp

  • 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
12
13ELISP_FILES="*.el"
14BYTECOMPILE_FILES="uim.el"
15SOURCES=${ELISP_FILES}
16
17case "${FLAVOR}" in
18    emacs)
19    ;;
20
21    *)
22    install -m 755 -d ${ELCDIR}
23    cd ${ELDIR}
24    cp ${ELISP_FILES} ${ELCDIR}
25    cd ${ELCDIR}
26    ${FLAVOR} ${FLAGS} ${BYTECOMPILE_FILES} > ${ELCDIR}/CompilationLog 2>&1
27    rm -f ${BYTECOMPILE_FILES}
28    gzip -9 ${ELCDIR}/CompilationLog
29    echo " done."
30    ;;
31
32    *)
33    ;;
34
35esac
36
37exit 0 ;
Note: See TracBrowser for help on using the repository browser.