/[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.67 Revision 1.68
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.67 2009/09/06 23:31:47 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.68 2009/09/06 23:36:04 robbat2 Exp $
4# 4#
5# Original author: John Mylchreest <johnm@gentoo.org> 5# Original author: John Mylchreest <johnm@gentoo.org>
6# Maintainer: kernel-misc@gentoo.org 6# Maintainer: kernel-misc@gentoo.org
7# 7#
8# Please direct your bugs to the current eclass maintainer :) 8# Please direct your bugs to the current eclass maintainer :)
356 # if we haven't determined the version yet, we need to. 356 # if we haven't determined the version yet, we need to.
357 get_version 357 get_version
358 local operator test value x=0 y=0 z=0 358 local operator test value x=0 y=0 z=0
359 359
360 case ${1} in 360 case ${1} in
361 lt) operator="-lt"; shift;; 361 -lt|lt) operator="-lt"; shift;;
362 gt) operator="-gt"; shift;; 362 -gt|gt) operator="-gt"; shift;;
363 le) operator="-le"; shift;; 363 -le|le) operator="-le"; shift;;
364 ge) operator="-ge"; shift;; 364 -ge|ge) operator="-ge"; shift;;
365 eq) operator="-eq"; shift;; 365 -eq|eq) operator="-eq"; shift;;
366 *) operator="-eq";; 366 *) operator="-eq";;
367 esac 367 esac
368 368
369 for x in ${@}; do 369 for x in ${@}; do
370 for((y=0; y<$((3 - ${#x})); y++)); do value="${value}0"; done 370 for((y=0; y<$((3 - ${#x})); y++)); do value="${value}0"; done
371 value="${value}${x}" 371 value="${value}${x}"

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.20