| 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.27 2010/08/30 22:08:24 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.28 2010/09/10 13:03:39 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 | # |
| … | |
… | |
| 248 | sub_S=${S#${WORKDIR}/} |
248 | sub_S=${S#${WORKDIR}/} |
| 249 | |
249 | |
| 250 | # Special case, for the always-lovely GitHub fetches. With this, |
250 | # Special case, for the always-lovely GitHub fetches. With this, |
| 251 | # we allow the star glob to just expand to whatever directory it's |
251 | # we allow the star glob to just expand to whatever directory it's |
| 252 | # called. |
252 | # called. |
| 253 | if [[ ${sub_S} = *"*" ]]; then |
253 | if [[ ${sub_S} = *"*"* ]]; then |
| 254 | pushd "${WORKDIR}"/all &>/dev/null |
254 | pushd "${WORKDIR}"/all &>/dev/null |
| 255 | sub_S=$(eval ls -d ${sub_S} 2>/dev/null) |
255 | sub_S=$(eval ls -d ${sub_S} 2>/dev/null) |
| 256 | popd &>/dev/null |
256 | popd &>/dev/null |
| 257 | fi |
257 | fi |
| 258 | |
258 | |