Lines 130-135
Link Here
|
130 |
# |
130 |
# |
131 |
# elisp-emacs-version() outputs the version of the currently active Emacs. |
131 |
# elisp-emacs-version() outputs the version of the currently active Emacs. |
132 |
|
132 |
|
|
|
133 |
inherit eutils # eshopts_{push,pop} |
134 |
|
133 |
# @ECLASS-VARIABLE: SITELISP |
135 |
# @ECLASS-VARIABLE: SITELISP |
134 |
# @DESCRIPTION: |
136 |
# @DESCRIPTION: |
135 |
# Directory where packages install Emacs Lisp files. |
137 |
# Directory where packages install Emacs Lisp files. |
Lines 304-311
elisp-site-regen() {
Link Here
|
304 |
rm -f "${sitelisp}"/00site-gentoo.el |
306 |
rm -f "${sitelisp}"/00site-gentoo.el |
305 |
|
307 |
|
306 |
# set nullglob option, there may be a directory without matching files |
308 |
# set nullglob option, there may be a directory without matching files |
307 |
local old_shopts=$(shopt -p nullglob) |
309 |
eshopts_push -s nullglob |
308 |
shopt -s nullglob |
|
|
309 |
|
310 |
|
310 |
for sf in "${sitelisp}"/[0-9][0-9]*-gentoo.el \ |
311 |
for sf in "${sitelisp}"/[0-9][0-9]*-gentoo.el \ |
311 |
"${sitelisp}"/site-gentoo.d/[0-9][0-9]*.el |
312 |
"${sitelisp}"/site-gentoo.d/[0-9][0-9]*.el |
Lines 319-325
elisp-site-regen() {
Link Here
|
319 |
sflist[i]=${sf} |
320 |
sflist[i]=${sf} |
320 |
done |
321 |
done |
321 |
|
322 |
|
322 |
eval "${old_shopts}" |
323 |
eshopts_pop |
323 |
|
324 |
|
324 |
cat <<-EOF >"${T}"/site-gentoo.el |
325 |
cat <<-EOF >"${T}"/site-gentoo.el |
325 |
;;; site-gentoo.el --- site initialisation for Gentoo-installed packages |
326 |
;;; site-gentoo.el --- site initialisation for Gentoo-installed packages |