elisp.eclass: Add function documentation for elisp_pkg_info

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2026-01-14 17:57:01 +01:00
parent aff0227cf4
commit 723ee109f0

View File

@@ -1,4 +1,4 @@
# Copyright 2002-2025 Gentoo Authors
# Copyright 2002-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: elisp.eclass
@@ -205,6 +205,10 @@ elisp_pkg_postrm() {
elisp-site-regen
}
# @FUNCTION: elisp_pkg_info
# @DESCRIPTION:
# Display the Emacs version that was used to build an installed package.
elisp_pkg_info() {
if [[ -n ${_ELISP_EMACS_VERSION} ]]; then
echo "Built with Emacs version: ${_ELISP_EMACS_VERSION}"