| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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.28 2004/06/25 00:39:48 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.29 2004/09/22 16:00:42 vapier 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 |
| … | |
… | |
| 109 | local do_reversedeps="no" |
109 | local do_reversedeps="no" |
| 110 | local do_only_patches="no" |
110 | local do_only_patches="no" |
| 111 | local deptoremove= |
111 | local deptoremove= |
| 112 | local my_dirlist= |
112 | local my_dirlist= |
| 113 | local elt_patches="portage relink max_cmd_len sed test tmp" |
113 | local elt_patches="portage relink max_cmd_len sed test tmp" |
|
|
114 | local start_dir="${PWD}" |
| 114 | |
115 | |
| 115 | my_dirlist="$(ELT_find_ltmain_sh)" |
116 | my_dirlist="$(ELT_find_ltmain_sh)" |
| 116 | |
117 | |
| 117 | for x in $* |
118 | for x in $* |
| 118 | do |
119 | do |
| … | |
… | |
| 252 | if [ -f libtool ] |
253 | if [ -f libtool ] |
| 253 | then |
254 | then |
| 254 | rm -f libtool |
255 | rm -f libtool |
| 255 | fi |
256 | fi |
| 256 | |
257 | |
| 257 | # We need to change the pwd back to $S, as we may be called in |
258 | cd "${start_dir}" |
| 258 | # src_compile() |
|
|
| 259 | cd ${S} |
|
|
| 260 | } |
259 | } |