summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-09-24 09:47:04 +0000
committerUlrich Müller <ulm@gentoo.org>2008-09-24 09:47:04 +0000
commita096bc0bdf4472ccb98c0122952f5ebbeff43f56 (patch)
tree9edc3954e8264a8d1c6fc175c148738860f54e4a /eclass/elisp-common.eclass
parentkeyword ~x86-fbsd (diff)
downloadhistorical-a096bc0bdf4472ccb98c0122952f5ebbeff43f56.tar.gz
historical-a096bc0bdf4472ccb98c0122952f5ebbeff43f56.tar.bz2
historical-a096bc0bdf4472ccb98c0122952f5ebbeff43f56.zip
Be less verbose, bug 237546.
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 1ef44d4fd69f..113777a6f3a4 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.46 2008/09/19 08:12:48 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.47 2008/09/24 09:47:04 ulm Exp $
#
# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
@@ -312,7 +312,7 @@ elisp-site-file-install() {
# when generating the start-up file.
elisp-site-regen() {
- local i sf line obsolete
+ local i sf line firstrun obsolete
local -a sflist
# Work around Paludis borkage: variable T is empty in pkg_postrm
local tmpdir=${T:-$(mktemp -d)}
@@ -322,8 +322,9 @@ elisp-site-regen() {
return 1
fi
- if [ ! -e "${ROOT}${SITELISP}"/site-gentoo.el ] \
- && [ ! -e "${ROOT}${SITELISP}"/site-start.el ]; then
+ [ -e "${ROOT}${SITELISP}"/site-gentoo.el ] || firstrun=t
+
+ if [ "${firstrun}" ] && [ ! -e "${ROOT}${SITELISP}"/site-start.el ]; then
einfo "Creating default ${SITELISP}/site-start.el ..."
cat <<-EOF >"${tmpdir}"/site-start.el
;;; site-start.el
@@ -398,11 +399,10 @@ elisp-site-regen() {
&& [ ! -e "${ROOT}${SITELISP}"/site-start.el ] \
&& mv "${tmpdir}"/site-start.el "${ROOT}${SITELISP}"/site-start.el
echo
- for sf in "${sflist[@]##*/}"; do
- einfo " Adding ${sf} ..."
- done
- einfo "Regenerated ${SITELISP}/site-gentoo.el."
+ einfo "... ${#sflist[@]} site initialisation file(s) included."
+ fi
+ if [ "${firstrun}" ]; then
echo
while read line; do einfo "${line:- }"; done <<-EOF
All site initialisation for Gentoo-installed packages is added to