summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-02-20 11:56:33 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-02-20 11:56:33 +0000
commite088aee7b79c4527a3273921981f37f04f42a2fd (patch)
treeeea7f82de54e20aae0ec0679032a1ac28b73f292 /eclass
parentadded missing patch file (diff)
downloadgentoo-2-e088aee7b79c4527a3273921981f37f04f42a2fd.tar.gz
gentoo-2-e088aee7b79c4527a3273921981f37f04f42a2fd.tar.bz2
gentoo-2-e088aee7b79c4527a3273921981f37f04f42a2fd.zip
Replace -printf option with basename call to be compatible with BSD find.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 5a4d11952506..2ff721770136 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.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/eutils.eclass,v 1.225 2006/02/18 10:50:10 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.226 2006/02/20 11:56:33 flameeyes Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -1438,7 +1438,7 @@ strip-linguas() {
local ls newls
if [[ $1 == "-i" ]] || [[ $1 == "-u" ]] ; then
local op=$1; shift
- ls=" $(find "$1" -name '*.po' -printf '%f ') "; shift
+ ls=" $(find "$1" -name '*.po' -exec basename {} \;) "; shift
local d f
for d in "$@" ; do
if [[ ${op} == "-u" ]] ; then
@@ -1446,7 +1446,7 @@ strip-linguas() {
else
newls=""
fi
- for f in $(find "$d" -name '*.po' -printf '%f ') ; do
+ for f in $(find "$d" -name '*.po' -exec basename {} \;) ; do
if [[ ${op} == "-i" ]] ; then
[[ ${ls/ ${f} /} != ${ls} ]] && newls="${newls} ${f}"
else