summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-09-02 10:02:50 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-09-02 10:02:50 +0000
commit08a122efd198bd683893159e21c74c92084519a7 (patch)
treeb3075b0c1cdb6f97f5fea6d5b218ab4d700de8d1 /eclass/libtool.eclass
parentRevision bump; fix cron job to use mktemp. Keeping keywords. Tidy old ebuilds (diff)
downloadgentoo-2-08a122efd198bd683893159e21c74c92084519a7.tar.gz
gentoo-2-08a122efd198bd683893159e21c74c92084519a7.tar.bz2
gentoo-2-08a122efd198bd683893159e21c74c92084519a7.zip
Do not run elibtoolize again if already run. The check for no patches applied was in the wrong for loop.
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r--eclass/libtool.eclass54
1 files changed, 28 insertions, 26 deletions
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index da075ad6adf9..aa7c86fec026 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.51 2005/09/02 09:35:17 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/libtool.eclass,v 1.52 2005/09/02 10:02:50 azarah Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -177,6 +177,8 @@ elibtoolize() {
local tmp=$(echo "${x}" | sed -e "s|${WORKDIR}||")
export ELT_APPLIED_PATCHES=
+ [[ -f ${x}/.elibtoolized ]] && continue
+
cd ${x}
einfo "Running elibtoolize in: $(echo "/${tmp}" | sed -e 's|//|/|g; s|^/||')"
@@ -246,37 +248,37 @@ elibtoolize() {
;;
esac
fi
+ done
- if [[ -z ${ELT_APPLIED_PATCHES} ]] ; then
- if [[ ${do_portage} == "no" && \
- ${do_reversedeps} == "no" && \
- ${do_only_patches} == "no" && \
- ${deptoremove} == "" ]]
- then
- ewarn "Cannot apply any patches, please file a bug about this"
- break
-
- # Sometimes ltmain.sh is in a subdirectory ...
- if [[ ! -f ${x}/configure.in && ! -f ${x}/configure.ac ]] ; then
- if [[ -f ${x}/../configure.in || -f ${x}/../configure.ac ]] ; then
- cd "${x}"/../
- fi
+ if [[ -z ${ELT_APPLIED_PATCHES} ]] ; then
+ if [[ ${do_portage} == "no" && \
+ ${do_reversedeps} == "no" && \
+ ${do_only_patches} == "no" && \
+ ${deptoremove} == "" ]]
+ then
+ ewarn "Cannot apply any patches, please file a bug about this"
+ break
+
+ # Sometimes ltmain.sh is in a subdirectory ...
+ if [[ ! -f ${x}/configure.in && ! -f ${x}/configure.ac ]] ; then
+ if [[ -f ${x}/../configure.in || -f ${x}/../configure.ac ]] ; then
+ cd "${x}"/../
fi
+ fi
- if type -p libtoolize &> /dev/null ; then
- ewarn "Cannot apply any patches, running libtoolize..."
- libtoolize --copy --force
- fi
- cd "${x}"
- break
+ if type -p libtoolize &> /dev/null ; then
+ ewarn "Cannot apply any patches, running libtoolize..."
+ libtoolize --copy --force
fi
+ cd "${x}"
+ break
fi
- done
- done
+ fi
- if [[ -f libtool ]] ; then
- rm -f libtool
- fi
+ [[ -f ${x}/libtool ]] && rm -f "${x}/libtool"
+
+ touch "${x}/.elibtoolized"
+ done
cd "${start_dir}"