summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-11-22 12:06:43 +0000
committerUlrich Müller <ulm@gentoo.org>2009-11-22 12:06:43 +0000
commit710a4c2b682273475a9eede35fe5cd35ba25ded7 (patch)
tree7de88f2ba9d8ac0bde7a299508cc097a51bd6323 /eclass/elisp-common.eclass
parentRevision bump to fix indicator issues per bug #292235. (diff)
downloadhistorical-710a4c2b682273475a9eede35fe5cd35ba25ded7.tar.gz
historical-710a4c2b682273475a9eede35fe5cd35ba25ded7.tar.bz2
historical-710a4c2b682273475a9eede35fe5cd35ba25ded7.zip
Display a warning message if no site-init files were found.
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index a7c574a29ce6..11f180e445a3 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.62 2009/10/08 10:50:35 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.63 2009/11/22 12:06:43 ulm Exp $
#
# Copyright 2002-2004 Matthew Kennedy <mkennedy@gentoo.org>
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
@@ -355,7 +355,11 @@ elisp-site-regen() {
else
mv "${T}"/site-gentoo.el "${ROOT}${SITELISP}"/site-gentoo.el
echo
- einfo "... ${#sflist[@]} site initialisation file(s) included."
+ case ${#sflist[@]} in
+ 0) ewarn "... Huh? No site initialisation files found." ;;
+ 1) einfo "... ${#sflist[@]} site initialisation file included." ;;
+ *) einfo "... ${#sflist[@]} site initialisation files included." ;;
+ esac
fi
if [ "${obsolete}" ]; then