/[gentoo-x86]/eclass/libtool.eclass
Gentoo

Diff of /eclass/libtool.eclass

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

Revision 1.94 Revision 1.95
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.94 2011/10/03 04:04:46 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.95 2011/11/14 17:08:49 vapier Exp $
4 4
5# @ECLASS: libtool.eclass 5# @ECLASS: libtool.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: quickly update bundled libtool code 8# @BLURB: quickly update bundled libtool code
117 local do_reversedeps="no" 117 local do_reversedeps="no"
118 local do_only_patches="no" 118 local do_only_patches="no"
119 local do_uclibc="yes" 119 local do_uclibc="yes"
120 local deptoremove= 120 local deptoremove=
121 local do_shallow="no" 121 local do_shallow="no"
122 local force="false"
122 local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed" 123 local elt_patches="install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed"
123 124
124 for x in "$@" ; do 125 for x in "$@" ; do
125 case ${x} in 126 case ${x} in
126 --portage) 127 --portage)
150 # Only patch the ltmain.sh in ${S} 151 # Only patch the ltmain.sh in ${S}
151 do_shallow="yes" 152 do_shallow="yes"
152 ;; 153 ;;
153 --no-uclibc) 154 --no-uclibc)
154 do_uclibc="no" 155 do_uclibc="no"
156 ;;
157 --force)
158 force="true"
155 ;; 159 ;;
156 *) 160 *)
157 eerror "Invalid elibtoolize option: ${x}" 161 eerror "Invalid elibtoolize option: ${x}"
158 die "elibtoolize called with ${x} ??" 162 die "elibtoolize called with ${x} ??"
159 esac 163 esac
184 188
185 local d p 189 local d p
186 for d in "$@" ; do 190 for d in "$@" ; do
187 export ELT_APPLIED_PATCHES= 191 export ELT_APPLIED_PATCHES=
188 192
189 [[ -f ${d}/.elibtoolized ]] && continue 193 if [[ -f ${d}/.elibtoolized ]] ; then
194 ${force} || continue
195 fi
190 196
191 einfo "Running elibtoolize in: ${d#${WORKDIR}/}/" 197 einfo "Running elibtoolize in: ${d#${WORKDIR}/}/"
198 if [[ -f ${d}/.elibtoolized ]] ; then
199 ewarn " We've already been run in this tree; you should"
200 ewarn " avoid this if possible (perhaps by filing a bug)"
201 fi
192 202
193 for p in ${elt_patches} ; do 203 for p in ${elt_patches} ; do
194 local ret=0 204 local ret=0
195 205
196 case ${p} in 206 case ${p} in

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95

  ViewVC Help
Powered by ViewVC 1.1.20