source: projects/specs/trunk/r/rdtool/rd-mode-install.sh @ 1503

Revision 1503, 831 bytes checked in by iwaim, 14 years ago (diff)

rdtool 0.6.22-3

  • Property svn:executable set to *
Line 
1#! /bin/sh -e
2# /usr/lib/emacsen-common/packages/install/rd-mode
3
4FLAVOR=$1
5PACKAGE=rd-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}"
11
12STARTDIR=/etc/${FLAVOR}/site-start.d
13STARTFILE="${PACKAGE}-init.el"
14
15SOURCES="rd-mode.el"
16
17case "${FLAVOR}" in
18    emacs)
19    ;;
20    *) 
21    echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
22    install -m 755 -d ${ELCDIR}
23    cd ${ELDIR}
24    cp ${SOURCES} ${ELCDIR}
25    cp vine-default-${PACKAGE}.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    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.