summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-11-17 16:44:47 +0000
committerUlrich Müller <ulm@gentoo.org>2009-11-17 16:44:47 +0000
commit409f0d61861e04c6754465b7bf5e32cda1c62dc8 (patch)
tree94637a002d5e36efb5ee6f353585cde3337e51cc /eclass/elisp-common.eclass
parentMove live ebuild from Portage tree to emacs overlay. (diff)
downloademacs-409f0d61861e04c6754465b7bf5e32cda1c62dc8.tar.gz
emacs-409f0d61861e04c6754465b7bf5e32cda1c62dc8.tar.bz2
emacs-409f0d61861e04c6754465b7bf5e32cda1c62dc8.zip
Add a warning. Remove another warning, in order not to violate warning number conservation.
svn path=/emacs-overlay/; revision=1470
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass20
1 files changed, 6 insertions, 14 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index d3a9fce..4c0992e 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -283,7 +283,7 @@ elisp-site-file-install() {
# location is still supported when generating site-gentoo.el.
elisp-site-regen() {
- local i sf line obsolete null="" page=$'\f'
+ local i sf line null="" page=$'\f'
local -a sflist
if [ ! -d "${ROOT}${SITELISP}" ]; then
@@ -316,8 +316,6 @@ elisp-site-regen() {
sflist[i]=${sflist[i-1]}
done
sflist[i]=${sf}
- # set a flag if there are obsolete files
- [ "${sf%/*}" = "${ROOT}${SITELISP}" ] && obsolete=t
done
eval "${old_shopts}"
@@ -355,17 +353,11 @@ elisp-site-regen() {
else
mv "${T}"/site-gentoo.el "${ROOT}${SITELISP}"/site-gentoo.el
echo
- einfo "... ${#sflist[@]} site initialisation file(s) included."
- fi
-
- if [ "${obsolete}" ]; then
- echo
- 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 app-admin/emacs-updater to rebuild the installed
- Emacs packages.
- EOF
+ 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
# cleanup