summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-04-15 20:38:49 +0200
committerUlrich Müller <ulm@gentoo.org>2021-04-19 22:08:17 +0200
commit56333bf085908afbadbbc25a5f58f39f804391e5 (patch)
tree0d98c886a3464b562b335a96546ebcc8d47f1fb8 /eclass/elisp-common.eclass
parentelisp-common.eclass: Drop support for EAPI 4 (diff)
downloadgentoo-56333bf085908afbadbbc25a5f58f39f804391e5.tar.gz
gentoo-56333bf085908afbadbbc25a5f58f39f804391e5.tar.bz2
gentoo-56333bf085908afbadbbc25a5f58f39f804391e5.zip
elisp-common.eclass: Use "==" in tests throughout
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/elisp-common.eclass')
-rw-r--r--eclass/elisp-common.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
index 90621cbe7b92..bce3fd0cec02 100644
--- a/eclass/elisp-common.eclass
+++ b/eclass/elisp-common.eclass
@@ -390,7 +390,7 @@ elisp-site-file-install() {
[[ ${sf%-gentoo*.el} != "${sf}" ]] && sf="${sf%-gentoo*.el}-gentoo.el"
sf="${T}/${sf}"
ebegin "Installing site initialisation file for GNU Emacs"
- [[ $1 = "${sf}" ]] || cp "$1" "${sf}"
+ [[ $1 == "${sf}" ]] || cp "$1" "${sf}"
if [[ ${EAPI} == 5 ]]; then
grep -q "@EMACSMODULES@" "${sf}" \
&& die "${ECLASS}: Dynamic modules not supported in EAPI ${EAPI}"
@@ -421,7 +421,7 @@ elisp-site-regen() {
local sf i ret=0 null="" page=$'\f'
local -a sflist
- if [[ ${EBUILD_PHASE} = *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then
+ if [[ ${EBUILD_PHASE} == *rm && ! -e ${sitelisp}/site-gentoo.el ]]; then
ewarn "Refusing to create site-gentoo.el in ${EBUILD_PHASE} phase."
return 0
fi
@@ -476,7 +476,7 @@ elisp-site-regen() {
mv "${T}"/site-gentoo.el "${sitelisp}"/site-gentoo.el
eend $? "elisp-site-regen: Replacing site-gentoo.el failed" || die
case ${#sflist[@]} in
- 0) [[ ${PN} = emacs-common ]] \
+ 0) [[ ${PN} == emacs-common ]] \
|| ewarn "... Huh? No site initialisation files found." ;;
1) einfo "... ${#sflist[@]} site initialisation file included." ;;
*) einfo "... ${#sflist[@]} site initialisation files included." ;;