Revision 9542,
1.2 KB
checked in by iwaim, 9 years ago
(diff) |
tamago-tsunagi 5.0.7.1-1
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #! /bin/sh -e |
---|
2 | # /usr/lib/emacsen-common/packages/install/tamago-tsunagi |
---|
3 | # [ This particular script hasn't been tested, so be careful. ] |
---|
4 | |
---|
5 | set -e |
---|
6 | |
---|
7 | FLAVOR=$1 |
---|
8 | PACKAGE="tamago-tsunagi" |
---|
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 | case "${FLAVOR}" in |
---|
29 | emacs-2*) |
---|
30 | echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..." |
---|
31 | rm -rf ${ELCDIR} |
---|
32 | install -m 755 -d ${ELCDIR} |
---|
33 | |
---|
34 | cp -a ${ELDIR}/* ${ELCDIR} |
---|
35 | |
---|
36 | # Byte compile |
---|
37 | ( |
---|
38 | cd ${ELCDIR} |
---|
39 | make > ${ELCDIR}/CompilationLog 2>&1 |
---|
40 | rm -f its/*.el |
---|
41 | rm -f egg/*.el |
---|
42 | rm -f egg*.el |
---|
43 | rm -f its.el |
---|
44 | rm -f leim-list.el |
---|
45 | rm -f menudiag.el |
---|
46 | rm -f docomp.el |
---|
47 | rm -f Makefile |
---|
48 | ) |
---|
49 | |
---|
50 | gzip -9 ${ELCDIR}/CompilationLog |
---|
51 | |
---|
52 | install -p -m644 ${ELDIR}/vine-default-${PACKAGE}.el ${ELCDIR} |
---|
53 | ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/50${STARTFILE} |
---|
54 | |
---|
55 | echo " done." |
---|
56 | ;; |
---|
57 | *) |
---|
58 | ;; |
---|
59 | esac |
---|
60 | |
---|
61 | exit 0; |
---|
Note: See
TracBrowser
for help on using the repository browser.