source: projects/specs/trunk/a/auto-complete-mode/auto-complete-install.sh @ 4651

Revision 4651, 1.0 KB checked in by munepi, 13 years ago (diff)

added auto-complete-mode-vl.spec

  • Property svn:executable set to *
Line 
1#! /bin/sh -e
2# /usr/lib/emacsen-common/packages/install/auto-complete
3
4##set -x
5
6FLAVOR=$1
7PACKAGE=auto-complete
8
9FLAGS="-Q -L . -batch -f batch-byte-compile"
10
11ELDIR="/usr/share/emacs/site-lisp/${PACKAGE}"
12ELCDIR="/usr/share/${FLAVOR}/site-lisp/${PACKAGE}"
13STARTDIR=/etc/${FLAVOR}/site-start.d
14STARTFILE="${PACKAGE}-init.el"
15
16SOURCES="auto-complete-config.el auto-complete.el fuzzy.el popup.el"
17AC_DICT="ac-dict"
18
19case "${FLAVOR}" in
20    *) 
21        echo -n "install/${PACKAGE}: Byte-compiling for ${FLAVOR} ..."
22        install -m 755 -d ${ELCDIR}
23        cd ${ELDIR}
24        cp *.el ${ELCDIR}
25        sed -e "s|@@FLAVOR@@|${FLAVOR}|g" vine-default-${PACKAGE}.el.in > ${ELCDIR}/vine-default-${PACKAGE}.el
26        rm -rf ${ELCDIR}/${AC_DICT}
27        cp -ra ${AC_DICT} ${ELCDIR}/
28        FILES="${SOURCES}"
29        cd ${ELCDIR}
30        ${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1
31        rm -f ${SOURCES}
32        gzip -9 ${ELCDIR}/CompilationLog
33
34        rm -f ${PACKAGE}-init.{el,elc}
35        rm -f vine-default-${PACKAGE}.elc
36
37        ln -sf ${ELDIR}/${STARTFILE} ${STARTDIR}/95${STARTFILE};
38        echo " done."
39        ;;
40esac
41
42exit 0 ;
Note: See TracBrowser for help on using the repository browser.