commit:     9f2b33191158b517d3aea3de953b4610d8add860
Author:     Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 28 14:29:00 2017 +0000
Commit:     José María Alonso <nimiux <AT> gentoo <DOT> org>
CommitDate: Sat Oct 28 14:29:00 2017 +0000
URL:        https://gitweb.gentoo.org/proj/lisp.git/commit/?id=9f2b3319

glo-utils.eclass: Drop obsolete eclass

 eclass/glo-utils.eclass | 45 ---------------------------------------------
 1 file changed, 45 deletions(-)

diff --git a/eclass/glo-utils.eclass b/eclass/glo-utils.eclass
deleted file mode 100644
index dd7dab8f..00000000
--- a/eclass/glo-utils.eclass
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-#
-# This eclass contains various utilities used in the Gentoo Lisp overlay
-#
-# Public functions:
-#
-# glo_usev flagname [<if_yes> [<if_no>]]
-#   If $(use FLAGNAME) return true, echo IF_YES to standard output,
-#   otherwise echo IF_NO. IF_YES defaults to FLAGNAME if not specified
-#
-# glo_best_flag flag+
-#   Echo to stdout the first active USE flag among those supplied as 
parameters.
-#   If none are active, echo the first one
-#
-
-glo_usev() {
-       if [[ $# < 1 || $# > 3 ]]; then
-               echo "Usage: ${0} flag [if_yes [if_no]]"
-               die "${0}: wrong number of arguments: $#"
-       fi
-       local if_yes="${2:-${1}}" if_no="${3}"
-       if useq ${1} ; then
-               printf "%s" "${if_yes}"
-               return 0
-       else
-               printf "%s" "${if_no}"
-               return 1
-       fi
-}
-
-glo_best_flag() {
-       if [[ $# < 1 ]]; then
-               echo "Usage: ${0} flag+"
-               die "${0}: wrong number of arguments: $#"
-       fi
-       for flag in $@ ; do
-               if use ${flag} ; then
-                       echo ${flag}
-                       return
-               fi
-       done
-       echo ${1}
-}

Reply via email to