/[gentoo-x86]/eclass/elisp-common.eclass
Gentoo

Diff of /eclass/elisp-common.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.77 Revision 1.78
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.77 2011/12/03 08:54:46 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.78 2011/12/03 20:43:21 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 einfo "Regenerating site-gentoo.el for GNU Emacs (${EBUILD_PHASE}) ..." 332 ebegin "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 eend
379 einfo "... no changes." 380 einfo "... no changes."
380 else 381 else
381 mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el 382 mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el
383 eend
382 case ${#sflist[@]} in 384 case ${#sflist[@]} in
383 0) ewarn "... Huh? No site initialisation files found." ;; 385 0) ewarn "... Huh? No site initialisation files found." ;;
384 1) einfo "... ${#sflist[@]} site initialisation file included." ;; 386 1) einfo "... ${#sflist[@]} site initialisation file included." ;;
385 *) einfo "... ${#sflist[@]} site initialisation files included." ;; 387 *) einfo "... ${#sflist[@]} site initialisation files included." ;;
386 esac 388 esac

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78

  ViewVC Help
Powered by ViewVC 1.1.20