/[gentoo-x86]/eclass/ruby-ng.eclass
Gentoo

Diff of /eclass/ruby-ng.eclass

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

Revision 1.11 Revision 1.12
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/ruby-ng.eclass,v 1.11 2010/04/26 15:07:58 a3li Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.12 2010/04/30 17:40:10 flameeyes Exp $
4# 4#
5# @ECLASS: ruby-ng.eclass 5# @ECLASS: ruby-ng.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
214 fi 214 fi
215done 215done
216 216
217_ruby_invoke_environment() { 217_ruby_invoke_environment() {
218 old_S=${S} 218 old_S=${S}
219 sub_S=${S#${WORKDIR}} 219 sub_S=${S#${WORKDIR}/}
220
221 # Special case, for the always-lovely GitHub fetches. With this,
222 # we allow the star glob to just expand to whatever directory it's
223 # called.
224 if [[ ${sub_S} = *"*" ]]; then
225 pushd "${WORKDIR}"/all &>/dev/null
226 sub_S=$(eval ls -d ${sub_S})
227 popd &>/dev/null
228 fi
220 229
221 environment=$1; shift 230 environment=$1; shift
222 231
223 my_WORKDIR="${WORKDIR}"/${environment} 232 my_WORKDIR="${WORKDIR}"/${environment}
224 S="${my_WORKDIR}"/"${sub_S}" 233 S="${my_WORKDIR}"/"${sub_S}"

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20