diff options
author | Ulrich Müller <ulm@gentoo.org> | 2008-07-01 22:10:06 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2008-07-01 22:10:06 +0000 |
commit | f12aa1d347638cc670ef41d77b21ae8f7d5c07db (patch) | |
tree | 4da1da53ce6febe01c7cda5af3fa87c7cc577787 /eclass/elisp-common.eclass | |
parent | bump to 2.22.4. Important bug fixes. (diff) | |
download | gentoo-2-f12aa1d347638cc670ef41d77b21ae8f7d5c07db.tar.gz gentoo-2-f12aa1d347638cc670ef41d77b21ae8f7d5c07db.tar.bz2 gentoo-2-f12aa1d347638cc670ef41d77b21ae8f7d5c07db.zip |
Sync eclasses from Emacs overlay (revision 1110).
elisp-common.eclass:
Create file for backwards compatibility only if obsolete files were found.
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r-- | eclass/elisp-common.eclass | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass index f132d26c7618..2a6fe1cf7a29 100644 --- a/eclass/elisp-common.eclass +++ b/eclass/elisp-common.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.40 2008/05/18 06:15:12 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.41 2008/07/01 22:10:06 ulm Exp $ # # Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org> # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> @@ -317,7 +317,7 @@ elisp-site-regen() { einfon "Regenerating ${SITELISP}/site-gentoo.el ..." - # remove auxiliary file + # remove any auxiliary file (from previous run) rm -f "${ROOT}${SITELISP}"/00site-gentoo.el # set nullglob option, there may be a directory without matching files @@ -395,26 +395,26 @@ for greater flexibility, users can load individual package-specific initialisation files from /usr/share/emacs/site-lisp/site-gentoo.d/. EOF echo - - if [ "${obsolete}" ]; then - while read line; do ewarn "${line}"; done <<-EOF - Site-initialisation files of Emacs packages are now installed in - /usr/share/emacs/site-lisp/site-gentoo.d/. We strongly recommend - that you use /usr/sbin/emacs-updater to rebuild the installed - Emacs packages. - EOF - echo - fi fi - # Kludge for backwards compatibility: During pkg_postrm, old versions - # of this eclass (saved in the VDB) won't find packages' site-init files - # in the new location. So we copy them to an auxiliary file that is - # visible to old eclass versions. - for sf in "${sflist[@]}"; do - [ "${sf%/*}" = "${ROOT}${SITELISP}/site-gentoo.d" ] \ - && cat "${sf}" >>"${ROOT}${SITELISP}"/00site-gentoo.el - done + if [ "${obsolete}" ]; then + while read line; do ewarn "${line}"; done <<-EOF + Site-initialisation files of Emacs packages are now installed in + /usr/share/emacs/site-lisp/site-gentoo.d/. We strongly recommend + that you use /usr/sbin/emacs-updater to rebuild the installed + Emacs packages. + EOF + echo + + # Kludge for backwards compatibility: During pkg_postrm, old versions + # of this eclass (saved in the VDB) won't find packages' site-init + # files in the new location. So we copy them to an auxiliary file + # that is visible to old eclass versions. + for sf in "${sflist[@]}"; do + [ "${sf%/*}" = "${ROOT}${SITELISP}/site-gentoo.d" ] \ + && cat "${sf}" >>"${ROOT}${SITELISP}"/00site-gentoo.el + done + fi # cleanup rm -f "${tmpdir}"/site-{gentoo,start}.el |