Revision 2750,
1.3 KB
checked in by munepi, 13 years ago
(diff) |
updated emacs, emacs24, wl, yatex, auctex, IIIMECF; added wl-beta; supported new vine-default
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh -e |
---|
2 | # /usr/lib/emacsen-common/packages/install/yatex |
---|
3 | # [ This particular script hasn't been tested, so be careful. ] |
---|
4 | |
---|
5 | set -e |
---|
6 | |
---|
7 | FLAVOR=$1 |
---|
8 | PACKAGE="yatex" |
---|
9 | |
---|
10 | if [ "X${FLAVOR}" = "X" ]; then |
---|
11 | echo Need argument to determin FLAVOR of emacs; |
---|
12 | exit 1 |
---|
13 | fi |
---|
14 | |
---|
15 | if [ "X${PACKAGE}" = "X" ]; then |
---|
16 | echo Internal error: need package name; |
---|
17 | exit 1; |
---|
18 | fi |
---|
19 | |
---|
20 | ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} |
---|
21 | ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} |
---|
22 | |
---|
23 | STARTDIR=/etc/${FLAVOR}/site-start.d |
---|
24 | STARTFILE="${PACKAGE}-init.el"; |
---|
25 | |
---|
26 | SITELISP=/usr/share/${FLAVOR}/site-lisp |
---|
27 | |
---|
28 | |
---|
29 | case "${FLAVOR}" in |
---|
30 | |
---|
31 | *) |
---|
32 | |
---|
33 | echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..." |
---|
34 | |
---|
35 | rm -rf ${ELCDIR} |
---|
36 | install -m 755 -d ${ELCDIR} |
---|
37 | |
---|
38 | # Byte compile |
---|
39 | ( |
---|
40 | cd ${ELDIR} |
---|
41 | |
---|
42 | make EMACS=${FLAVOR} EMACSDIR=/usr/share/${FLAVOR} \ |
---|
43 | bytecompile-nw > ${ELCDIR}/CompilationLog 2>&1 |
---|
44 | |
---|
45 | install -v -m 644 *.el *.elc ${ELCDIR} \ |
---|
46 | >> ${ELCDIR}/CompilationLog 2>&1 |
---|
47 | |
---|
48 | make clean >> ${ELCDIR}/CompilationLog 2>&1 |
---|
49 | |
---|
50 | cd ${ELCDIR} |
---|
51 | rm -f ${PACKAGE}-init.{el,elc} |
---|
52 | rm -f vine-default-${PACKAGE}.elc vine-default-yahtml.elc |
---|
53 | ) |
---|
54 | |
---|
55 | gzip -9 ${ELCDIR}/CompilationLog |
---|
56 | |
---|
57 | if [ ! -d ${STARTDIR} ]; then |
---|
58 | install -m 755 -d ${STARTDIR} |
---|
59 | fi |
---|
60 | |
---|
61 | ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/50${STARTFILE}; |
---|
62 | |
---|
63 | echo " done." |
---|
64 | |
---|
65 | ;; |
---|
66 | |
---|
67 | esac |
---|
68 | |
---|
69 | exit 0; |
---|
Note: See
TracBrowser
for help on using the repository browser.