diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2009-05-12 10:35:32 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2009-05-12 10:35:32 +0000 |
commit | 3ef099be677bfbed8c5913477793d76df01765ee (patch) | |
tree | 2f8a75288359d6df17ef8664b7db7ab97da2a6e6 /eclass | |
parent | add fix for http://security.freebsd.org/advisories/FreeBSD-SA-09:07.libc.asc (diff) | |
download | historical-3ef099be677bfbed8c5913477793d76df01765ee.tar.gz historical-3ef099be677bfbed8c5913477793d76df01765ee.tar.bz2 historical-3ef099be677bfbed8c5913477793d76df01765ee.zip |
Minor fix on eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt4.eclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/qt4.eclass b/eclass/qt4.eclass index d9aa3f32e092..5a3c02497424 100644 --- a/eclass/qt4.eclass +++ b/eclass/qt4.eclass @@ -1,6 +1,6 @@ # Copyright 2005-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.54 2009/05/09 14:59:03 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.55 2009/05/12 10:35:32 hwoarang Exp $ # @ECLASS: qt4.eclass # @MAINTAINER: @@ -272,8 +272,9 @@ eqmake4() { printf "CONFIG += %s\n", add >> file; print fixed; }' - local file= - while read file; do + local filepath= + while read filepath; do + local file="${filepath#./}" grep -q '^### eqmake4 was here ###$' "${file}" && continue local retval=$({ rm -f "${file}" || echo "FAILED" @@ -285,7 +286,7 @@ eqmake4() { eerror " An error occurred while processing ${file}" die "eqmake4 failed to process '${file}'." fi - done < <(find "$(dirname "${projectfile}")" -type f -name "*.pr[io]" -printf '%P\n' 2>/dev/null) + done < <(find "$(dirname "${projectfile}")" -type f -name "*.pr[io]" 2>/dev/null) /usr/bin/qmake -makefile -nocache \ QTDIR=/usr/$(get_libdir) \ |