/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

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

Revision 1.421 Revision 1.422
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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/eutils.eclass,v 1.421 2013/05/22 05:10:29 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.422 2013/06/21 23:52:50 vapier Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
214eumask_pop() { 214eumask_pop() {
215 [[ $# -eq 0 ]] || die "${FUNCNAME}: we take no options" 215 [[ $# -eq 0 ]] || die "${FUNCNAME}: we take no options"
216 local s 216 local s
217 estack_pop eumask s || die "${FUNCNAME}: unbalanced push" 217 estack_pop eumask s || die "${FUNCNAME}: unbalanced push"
218 umask ${s} || die "${FUNCNAME}: sanity: could not restore umask: ${s}" 218 umask ${s} || die "${FUNCNAME}: sanity: could not restore umask: ${s}"
219}
220
221# @FUNCTION: isdigit
222# @USAGE: <number> [more numbers]
223# @DESCRIPTION:
224# Return true if all arguments are numbers.
225isdigit() {
226 local d
227 for d ; do
228 [[ ${d:-bad} == *[!0-9]* ]] && return 1
229 done
230 return 0
219} 231}
220 232
221# @VARIABLE: EPATCH_SOURCE 233# @VARIABLE: EPATCH_SOURCE
222# @DESCRIPTION: 234# @DESCRIPTION:
223# Default directory to search for patches. 235# Default directory to search for patches.

Legend:
Removed from v.1.421  
changed lines
  Added in v.1.422

  ViewVC Help
Powered by ViewVC 1.1.20