| 1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.1 2003/09/21 01:40:41 mkennedy Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.2 2003/10/06 06:38:33 mkennedy Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Matthew Kennedy <mkennedy@gentoo.org> |
5 | # Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> |
|
|
6 | # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
| 6 | # |
7 | # |
| 7 | # This is not an eclass, but it does provide emacs-related |
8 | # This is not an eclass, but it does provide emacs-related |
| 8 | # installation utilities. |
9 | # installation utilities. |
| 9 | |
10 | |
| 10 | ECLASS=elisp-common |
11 | ECLASS=elisp-common |
| 11 | INHERITED="$INHERITED $ECLASS" |
12 | INHERITED="$INHERITED $ECLASS" |
| 12 | |
13 | |
| 13 | SITELISP=/usr/share/emacs/site-lisp |
14 | SITELISP=/usr/share/emacs/site-lisp |
|
|
15 | |
|
|
16 | elisp-compile() { |
|
|
17 | /usr/bin/emacs --batch -f batch-byte-compile --no-site-file --no-init-file $* |
|
|
18 | } |
| 14 | |
19 | |
| 15 | elisp-install() { |
20 | elisp-install() { |
| 16 | local subdir=$1 |
21 | local subdir=$1 |
| 17 | dodir ${SITELISP}/${subdir} |
22 | dodir ${SITELISP}/${subdir} |
| 18 | insinto ${SITELISP}/${subdir} |
23 | insinto ${SITELISP}/${subdir} |
| … | |
… | |
| 52 | # Local Variables: *** |
57 | # Local Variables: *** |
| 53 | # mode: shell-script *** |
58 | # mode: shell-script *** |
| 54 | # tab-width: 4 *** |
59 | # tab-width: 4 *** |
| 55 | # indent-tabs-mode: t *** |
60 | # indent-tabs-mode: t *** |
| 56 | # End: *** |
61 | # End: *** |
|
|
62 | |