source: projects/specs/trunk/a/auctex/preview-latex-install.sh @ 2750

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/preview-latex
3# [ This particular script hasn't been tested, so be careful. ]
4
5set -e
6
7FLAVOR=$1
8PACKAGE="preview-latex"
9
10if [ "X${FLAVOR}" = "X" ]; then
11    echo Need argument to determin FLAVOR of emacs;
12    exit 1
13fi
14
15if [ "X${PACKAGE}" = "X" ]; then
16    echo Internal error: need package name;
17    exit 1;
18fi
19
20ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
21ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
22
23STARTDIR=/etc/${FLAVOR}/site-start.d
24STARTFILE="${PACKAGE}-init.el";
25
26SITELISP=/usr/share/${FLAVOR}/site-lisp
27
28## <merged from auctex-11.85/preview/Makefile>
29ELCC="${FLAVOR} -batch -q -no-site-file -no-init-file"
30LISP_SOURCES="prv-emacs.el preview.el"
31## </merged from auctex-11.85/preview/Makefile>
32
33
34case "${FLAVOR}" in
35
36    *)
37
38        echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
39
40        rm -rf ${ELCDIR}
41        install -m 755 -d ${ELCDIR}
42
43        # Byte compile
44        (
45            cd ${ELDIR}
46            install -p -m 0644 *.el ${ELCDIR}
47            cp -ra images ${ELCDIR}/
48            cd ${ELCDIR}
49
50            ${ELCC} -f batch-byte-compile \
51                ${LISP_SOURCES} > CompilationLog 2>&1
52
53            rm -f auto.el ${PACKAGE}-init.el
54        )
55
56        gzip -9 ${ELCDIR}/CompilationLog
57
58        if [ ! -d ${STARTDIR} ]; then
59            install -m 755 -d ${STARTDIR}
60        fi
61
62        ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/50${STARTFILE};
63
64        echo " done."
65
66        ;;
67
68esac
69
70exit 0;
Note: See TracBrowser for help on using the repository browser.