1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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.199 2005/09/22 14:52:36 wolf31o2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.200 2005/09/23 20:44:26 wolf31o2 Exp $ |
4 | # |
4 | # |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
6 | # |
6 | # |
7 | # This eclass is for general purpose functions that most ebuilds |
7 | # This eclass is for general purpose functions that most ebuilds |
8 | # have to implement themselves. |
8 | # have to implement themselves. |
… | |
… | |
1142 | lic="${PWD}/${lic}" |
1142 | lic="${PWD}/${lic}" |
1143 | elif [ -e "${lic}" ] ; then |
1143 | elif [ -e "${lic}" ] ; then |
1144 | lic="${lic}" |
1144 | lic="${lic}" |
1145 | fi |
1145 | fi |
1146 | fi |
1146 | fi |
1147 | [ ! -f "${lic}" ] && die "Could not find requested license ${src}" |
1147 | [ ! -f "${lic}" ] && die "Could not find requested license ${lic}" |
1148 | local l="`basename ${lic}`" |
1148 | local l="`basename ${lic}`" |
1149 | |
1149 | |
1150 | # here is where we check for the licenses the user already |
1150 | # here is where we check for the licenses the user already |
1151 | # accepted ... if we don't find a match, we make the user accept |
1151 | # accepted ... if we don't find a match, we make the user accept |
1152 | local shopts=$- |
1152 | local shopts=$- |