5 ELDIR=/usr/share/emacs/site-lisp/
6 ELCDIR=/usr/share/$FLAVOUR/site-lisp/
7 EFLAGS="-batch -q -l lpath.el -f batch-byte-compile"
8 CONFFILE=${ELDIR}/${PACKAGE}-init.el
9 CONFDIR=/etc/$FLAVOUR/site-start.d/
11 SOURCES="dictionary.el connection.el link.el"
14 emacs) echo "install/$PACKAGE: Ignoring emacs";;
15 *) echo -n "install/$PACKAGE: Byte-compiling for $FLAVOUR..."
16 install -m 755 -d $ELCDIR
17 for i in $SOURCES; do cp $ELDIR/$i $ELCDIR; done
19 echo '(setq load-path (cons "." load-path))' > lpath.el
20 $FLAVOUR $EFLAGS $SOURCES 2>/dev/null
22 cp ${CONFFILE} ${CONFDIR}/50${PACKAGE}.el
24 for i in $SOURCES; do rm -f $ELCDIR/*.el; done