mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-08 18:27:07 -08:00
inux-info.eclass: Remove local function.Calling code removed on Aug 3,2010
This function was only called locally and the last use was almost 12 years ago See: https://gitlab.com/rindeal/gentoo-cvs-history-archive/-/commit/1715ad cd9e404075340e5a5ed82f88928feeffd9 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
This commit is contained in:
@@ -438,26 +438,6 @@ kernel_is() {
|
||||
"${1:-${KV_MAJOR:-0}}.${2:-${KV_MINOR:-0}}.${3:-${KV_PATCH:-0}}"
|
||||
}
|
||||
|
||||
get_localversion() {
|
||||
local lv_list i x
|
||||
|
||||
local shopt_save=$(shopt -p nullglob)
|
||||
shopt -s nullglob
|
||||
local files=( ${1}/localversion* )
|
||||
${shopt_save}
|
||||
|
||||
# ignore files with ~ in it.
|
||||
for i in "${files[@]}"; do
|
||||
[[ -n ${i//*~*} ]] && lv_list="${lv_list} ${i}"
|
||||
done
|
||||
|
||||
for i in ${lv_list}; do
|
||||
x="${x}$(<${i})"
|
||||
done
|
||||
x=${x/ /}
|
||||
echo ${x}
|
||||
}
|
||||
|
||||
# Check if the Makefile is valid for direct parsing.
|
||||
# Check status results:
|
||||
# - PASS, use 'getfilevar' to extract values
|
||||
|
||||
Reference in New Issue
Block a user