| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.76 2011/10/09 09:10:41 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.77 2011/12/03 08:54:46 ulm Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: elisp-common.eclass |
5 | # @ECLASS: elisp-common.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Gentoo Emacs team <emacs@gentoo.org> |
7 | # Gentoo Emacs team <emacs@gentoo.org> |
| 8 | # @AUTHOR: |
8 | # @AUTHOR: |
| … | |
… | |
| 327 | if [[ ! -d ${T} ]]; then |
327 | if [[ ! -d ${T} ]]; then |
| 328 | eerror "elisp-site-regen: Temporary directory ${T} does not exist" |
328 | eerror "elisp-site-regen: Temporary directory ${T} does not exist" |
| 329 | return 1 |
329 | return 1 |
| 330 | fi |
330 | fi |
| 331 | |
331 | |
| 332 | einfon "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE}) ..." |
332 | einfo "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE}) ..." |
| 333 | |
333 | |
| 334 | # Until January 2009, elisp-common.eclass sometimes created an |
334 | # Until January 2009, elisp-common.eclass sometimes created an |
| 335 | # auxiliary file for backwards compatibility. Remove any such file. |
335 | # auxiliary file for backwards compatibility. Remove any such file. |
| 336 | rm -f "${sitelisp}"/00site-gentoo.el |
336 | rm -f "${sitelisp}"/00site-gentoo.el |
| 337 | |
337 | |
| … | |
… | |
| 374 | if cmp -s "${sitelisp}"/site-gentoo.el "${T}"/site-gentoo.el; then |
374 | if cmp -s "${sitelisp}"/site-gentoo.el "${T}"/site-gentoo.el; then |
| 375 | # This prevents outputting unnecessary text when there |
375 | # This prevents outputting unnecessary text when there |
| 376 | # was actually no change. |
376 | # was actually no change. |
| 377 | # A case is a remerge where we have doubled output. |
377 | # A case is a remerge where we have doubled output. |
| 378 | rm -f "${T}"/site-gentoo.el |
378 | rm -f "${T}"/site-gentoo.el |
| 379 | echo " no changes." |
379 | einfo "... no changes." |
| 380 | else |
380 | else |
| 381 | mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el |
381 | mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el |
| 382 | echo |
|
|
| 383 | case ${#sflist[@]} in |
382 | case ${#sflist[@]} in |
| 384 | 0) ewarn "... Huh? No site initialisation files found." ;; |
383 | 0) ewarn "... Huh? No site initialisation files found." ;; |
| 385 | 1) einfo "... ${#sflist[@]} site initialisation file included." ;; |
384 | 1) einfo "... ${#sflist[@]} site initialisation file included." ;; |
| 386 | *) einfo "... ${#sflist[@]} site initialisation files included." ;; |
385 | *) einfo "... ${#sflist[@]} site initialisation files included." ;; |
| 387 | esac |
386 | esac |