/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.104 Revision 1.105
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.104 2014/06/28 07:54:27 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.105 2015/05/09 08:03:40 ulm Exp $
4 4
5# @ECLASS: linux-info.eclass 5# @ECLASS: linux-info.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kernel-misc@gentoo.org 7# kernel-misc@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
597 unset KV_FULL 597 unset KV_FULL
598 get_version 598 get_version
599 return $? 599 return $?
600 else 600 else
601 # This handles a variety of weird kernel versions. Make sure to update 601 # This handles a variety of weird kernel versions. Make sure to update
602 # tests/linux-info:get_running_version.sh if you want to change this. 602 # tests/linux-info_get_running_version.sh if you want to change this.
603 local kv_full=${KV_FULL//[-+_]*} 603 local kv_full=${KV_FULL//[-+_]*}
604 KV_MAJOR=$(get_version_component_range 1 ${kv_full}) 604 KV_MAJOR=$(get_version_component_range 1 ${kv_full})
605 KV_MINOR=$(get_version_component_range 2 ${kv_full}) 605 KV_MINOR=$(get_version_component_range 2 ${kv_full})
606 KV_PATCH=$(get_version_component_range 3 ${kv_full}) 606 KV_PATCH=$(get_version_component_range 3 ${kv_full})
607 KV_EXTRA="${KV_FULL#${KV_MAJOR}.${KV_MINOR}${KV_PATCH:+.${KV_PATCH}}}" 607 KV_EXTRA="${KV_FULL#${KV_MAJOR}.${KV_MINOR}${KV_PATCH:+.${KV_PATCH}}}"

Legend:
Removed from v.1.104  
changed lines
  Added in v.1.105

  ViewVC Help
Powered by ViewVC 1.1.20