Revision 1534,
1.1 KB
checked in by munepi, 14 years ago
(diff) |
NEW xdvi-search-el: renamed from a subpackage xdvik-search to xdvi-search-el; ready for TeX Live
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #! /bin/sh -e |
---|
2 | # /usr/lib/emacsen-common/packages/install/xdvik |
---|
3 | # [ This particular script hasn't been tested, so be careful. ] |
---|
4 | |
---|
5 | set -e |
---|
6 | |
---|
7 | FLAVOR=$1 |
---|
8 | PACKAGE="xdvik" |
---|
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 | *) |
---|
30 | echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..." |
---|
31 | |
---|
32 | rm -rf ${ELCDIR} |
---|
33 | install -m 755 -d ${ELCDIR} |
---|
34 | |
---|
35 | # Byte compile them |
---|
36 | ${FLAVOR} -batch -f batch-byte-compile ${ELDIR}/xdvi-search.el \ |
---|
37 | >> ${ELCDIR}/CompilationLog 2>&1 |
---|
38 | cp ${ELDIR}/xdvi-search.elc ${ELCDIR} |
---|
39 | |
---|
40 | gzip -9 ${ELCDIR}/CompilationLog |
---|
41 | |
---|
42 | rm -f ${ELDIR}/*.elc |
---|
43 | rm -f ${ELCDIR}/*.el |
---|
44 | |
---|
45 | ln -f -s ${ELDIR}/${STARTFILE} ${STARTDIR}/60${STARTFILE}; |
---|
46 | |
---|
47 | echo " done." |
---|
48 | ;; |
---|
49 | |
---|
50 | esac |
---|
51 | |
---|
52 | exit 0; |
---|
Note: See
TracBrowser
for help on using the repository browser.