| 1 | # Copyright 1999-2007 Gentoo Foundation |
1 | # Copyright 1999-2007 Gentoo Foundation |
| 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.18 2007/04/19 13:26:37 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.20 2007/04/29 12:59:39 ulm Exp $ |
| 4 | # |
4 | # |
| 5 | # Copyright 2007 Christian Faulhammer <opfer@gentoo.org> |
5 | # Copyright 2007 Christian Faulhammer <opfer@gentoo.org> |
| 6 | # Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org> |
6 | # Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org> |
| 7 | # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
7 | # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
| 8 | # Copyright 2007 Ulrich Mueller <ulm@gentoo.org> |
8 | # Copyright 2007 Ulrich Mueller <ulm@gentoo.org> |
| … | |
… | |
| 149 | cat <<EOF >${ROOT}${SITELISP}/site-gentoo.el |
149 | cat <<EOF >${ROOT}${SITELISP}/site-gentoo.el |
| 150 | ;;; DO NOT EDIT THIS FILE -- IT IS GENERATED AUTOMATICALLY BY PORTAGE |
150 | ;;; DO NOT EDIT THIS FILE -- IT IS GENERATED AUTOMATICALLY BY PORTAGE |
| 151 | ;;; ----------------------------------------------------------------- |
151 | ;;; ----------------------------------------------------------------- |
| 152 | |
152 | |
| 153 | EOF |
153 | EOF |
| 154 | ls ${ROOT}${SITELISP}/[0-9][0-9]*-gentoo.el | sort -n | \ |
154 | for sf in ${ROOT}${SITELISP}/[0-9][0-9]*-gentoo.el |
| 155 | while read sf |
|
|
| 156 | do |
155 | do |
|
|
156 | [ -r "${sf}" ] || continue |
| 157 | einfo " Adding $(basename $sf) ..." |
157 | einfo " Adding $(basename ${sf}) ..." |
| 158 | # Great for debugging, too noisy and slow for users though |
|
|
| 159 | # echo "(message \"Loading $sf ...\")" >>${ROOT}${SITELISP}/site-start.el |
|
|
| 160 | cat $sf >>${ROOT}${SITELISP}/site-gentoo.el |
158 | cat "${sf}" >>${ROOT}${SITELISP}/site-gentoo.el |
| 161 | done |
159 | done |
| 162 | while read line; do einfo "${line}"; done <<EOF |
160 | while read line; do einfo "${line}"; done <<EOF |
| 163 | |
161 | |
| 164 | All site initialization for Gentoo-installed packages is now added to |
162 | All site initialization for Gentoo-installed packages is now added to |
| 165 | /usr/share/emacs/site-lisp/site-gentoo.el; site-start.el is no longer |
163 | /usr/share/emacs/site-lisp/site-gentoo.el; site-start.el is no longer |
| … | |
… | |
| 167 | site-start.el if there is such a file. |
165 | site-start.el if there is such a file. |
| 168 | |
166 | |
| 169 | In order for this site initialization to be loaded for all users |
167 | In order for this site initialization to be loaded for all users |
| 170 | automatically, as was done previously, you can add a line like this: |
168 | automatically, as was done previously, you can add a line like this: |
| 171 | |
169 | |
| 172 | (load "/usr/share/emacs/site-lisp/site-gentoo") |
170 | (load "/usr/share/emacs/site-lisp/site-gentoo" nil t) |
| 173 | |
171 | |
| 174 | to /usr/share/emacs/site-lisp/site-start.el. Alternatively, that line |
172 | to /usr/share/emacs/site-lisp/site-start.el. Alternatively, that line |
| 175 | can be added by individual users to their initialization files, or for |
173 | can be added by individual users to their initialization files, or for |
| 176 | greater flexibility, users can select which of the package-specific |
174 | greater flexibility, users can select which of the package-specific |
| 177 | initialization files in /usr/share/emacs/site-lisp to load. |
175 | initialization files in /usr/share/emacs/site-lisp to load. |