source: projects/specs/trunk/t/tamago-tsunagi/tamago-tsunagi-install.sh @ 9542

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
5set -e
6
7FLAVOR=$1
8PACKAGE="tamago-tsunagi"
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
28case "${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        ;;
59esac
60
61exit 0;
Note: See TracBrowser for help on using the repository browser.