| 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/libtool.eclass,v 1.53 2005/09/02 21:12:09 azarah Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.54 2005/09/04 15:15:37 swegener Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass patches ltmain.sh distributed with libtoolized packages with the |
7 | # This eclass patches ltmain.sh distributed with libtoolized packages with the |
| 8 | # relink and portage patch among others |
8 | # relink and portage patch among others |
| … | |
… | |
| 67 | local y= |
67 | local y= |
| 68 | local ret=1 |
68 | local ret=1 |
| 69 | local patch_dir= |
69 | local patch_dir= |
| 70 | local version= |
70 | local version= |
| 71 | local ltmain_sh=$1 |
71 | local ltmain_sh=$1 |
| 72 | |
72 | |
| 73 | [[ $1 == *"/configure" ]] && ltmain_sh=${ELT_LTMAIN_SH} |
73 | [[ $1 == *"/configure" ]] && ltmain_sh=${ELT_LTMAIN_SH} |
| 74 | version=$(eval $(grep -e '^[[:space:]]*VERSION=' "${ltmain_sh}"); \ |
74 | version=$(eval $(grep -e '^[[:space:]]*VERSION=' "${ltmain_sh}"); \ |
| 75 | echo "${VERSION}") |
75 | echo "${VERSION}") |
| 76 | |
76 | |
| 77 | if [[ -n $2 ]] ; then |
77 | if [[ -n $2 ]] ; then |