source: projects/specs/trunk/I/IIIMECF/IIIMECF-install.sh @ 2750

Revision 2750, 1.5 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/foo
3# [ This particular script hasn't been tested, so be careful. ]
4
5set -e
6
7FLAVOR=$1
8VERSION="0.6"
9PACKAGE="IIIMECF"
10
11if [ "X${FLAVOR}" = "X" ]; then
12    echo Need argument to determin FLAVOR of emacs;
13    exit 1
14fi
15
16if [ "X${PACKAGE}" = "X" ]; then
17    echo Internal error: need package name;
18    exit 1;
19fi
20
21ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
22ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
23
24if [ ! -x "$ELCDIR" ] ; then
25    mkdir -p "$ELCDIR"
26fi
27
28STARTDIR=/etc/${FLAVOR}/site-start.d
29STARTFILE="${PACKAGE}-init.el";
30
31SITELISP=/usr/share/${FLAVOR}/site-lisp
32
33STAMP=${ELCDIR}/compile-stamp
34case "${FLAVOR}" in
35       emacs)
36       ;;
37       xemacs-21.1.14)
38         echo "Not Supported in this." 
39       ;;
40
41       # emacs20|emacs21|xemacs21)
42       *)
43
44       echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
45
46    if [ -e ${STAMP} ]; then
47        if [ "${VERSION}" = "`cat ${STAMP}`" ]; then
48            echo " exited. (already compiled)" 
49            exit
50        else
51            rm -f ${STAMP}
52        fi
53    fi
54
55       rm -rf ${ELCDIR}
56    install -m 755 -d ${ELCDIR}
57
58    # Byte compile them
59    (cd ${ELDIR}
60        ${FLAVOR} -q --no-site-file -batch -l iiimcf-comp.el > ${ELCDIR}/CompilationLog 2>&1
61    )
62    mv ${ELDIR}/lisp/*.elc ${ELCDIR}/
63    gzip -9 ${ELCDIR}/CompilationLog
64    echo ${VERSION} > ${STAMP}
65
66    install -p -m644 ${ELDIR}/vine-default-${PACKAGE}.el ${ELCDIR}
67    ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/40${STARTFILE};
68    echo " done."
69    ;;
70*)
71    ;;
72esac
73
74exit 0;
75
Note: See TracBrowser for help on using the repository browser.