/[gentoo-x86]/eclass/scons-utils.eclass
Gentoo

Diff of /eclass/scons-utils.eclass

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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/scons-utils.eclass,v 1.2 2010/10/27 18:23:58 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/scons-utils.eclass,v 1.3 2011/02/07 14:55:08 mgorny Exp $
4 4
5# @ECLASS: scons-utils.eclass 5# @ECLASS: scons-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# mgorny@gentoo.org 7# mgorny@gentoo.org
8# @BLURB: helper functions to deal with SCons buildsystem 8# @BLURB: helper functions to deal with SCons buildsystem
116 if [[ ${#} -gt 1 && ${2} =~ [0-9]+ ]]; then 116 if [[ ${#} -gt 1 && ${2} =~ [0-9]+ ]]; then
117 new_makeopts="${new_makeopts+${new_makeopts} }${1} ${2}" 117 new_makeopts="${new_makeopts+${new_makeopts} }${1} ${2}"
118 shift 118 shift
119 else 119 else
120 # no value means no limit, let's pass a random int 120 # no value means no limit, let's pass a random int
121 new_makeopts=${new_makeopts+${new_makeopts} }${1}=255 121 new_makeopts=${new_makeopts+${new_makeopts} }${1}=5
122 fi 122 fi
123 ;; 123 ;;
124 # strip other long options 124 # strip other long options
125 --*) 125 --*)
126 ;; 126 ;;
139 j) 139 j)
140 if [[ ${#} -gt 1 && ${2} =~ [0-9]+ ]]; then 140 if [[ ${#} -gt 1 && ${2} =~ [0-9]+ ]]; then
141 new_optstr="${new_optstr}j ${2}" 141 new_optstr="${new_optstr}j ${2}"
142 shift 142 shift
143 else 143 else
144 new_optstr="${new_optstr}j 255" 144 new_optstr="${new_optstr}j 5"
145 fi 145 fi
146 ;; 146 ;;
147 # otherwise, everything after -j is treated as an arg 147 # otherwise, everything after -j is treated as an arg
148 j*) 148 j*)
149 new_optstr=${new_optstr}${str} 149 new_optstr=${new_optstr}${str}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20