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 | |
---|
4 | FLAVOR=$1 |
---|
5 | PACKAGE=rd-mode |
---|
6 | |
---|
7 | FLAGS="${SITEFLAG} -q -batch -f batch-byte-compile" |
---|
8 | |
---|
9 | ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}" |
---|
10 | ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}" |
---|
11 | |
---|
12 | STARTDIR=/etc/${FLAVOR}/site-start.d |
---|
13 | STARTFILE="${PACKAGE}-init.el" |
---|
14 | |
---|
15 | SOURCES="rd-mode.el" |
---|
16 | |
---|
17 | case "${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 | ;; |
---|
34 | esac |
---|
35 | |
---|
36 | exit 0 ; |
---|
Note: See
TracBrowser
for help on using the repository browser.