diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-29 03:20:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-29 03:20:14 +0000 |
commit | 657734309a526231c4e4fd795e386348d69a7fdb (patch) | |
tree | 8be50f869fbc599b795227cf2fb72ee848392163 /eclass/db.eclass | |
parent | Version bumped. (diff) | |
download | historical-657734309a526231c4e4fd795e386348d69a7fdb.tar.gz historical-657734309a526231c4e4fd795e386348d69a7fdb.tar.bz2 historical-657734309a526231c4e4fd795e386348d69a7fdb.zip |
put the maxdepth option first so find doesnt complain
Diffstat (limited to 'eclass/db.eclass')
-rw-r--r-- | eclass/db.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/db.eclass b/eclass/db.eclass index faa9e5305abb..6562327a2888 100644 --- a/eclass/db.eclass +++ b/eclass/db.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.15 2005/03/24 15:03:36 pauldv Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.16 2005/05/29 03:20:14 vapier Exp $ # This is a common location for functions used in the sys-libs/db ebuilds ECLASS=db @@ -17,7 +17,7 @@ db_fix_so () { # now rebuild all the correct ones for ext in so a; do for name in libdb libdb_cxx libdb_tcl libdb_java; do - target=`find . -type f -maxdepth 1 -name "${name}-*.${ext}" |sort -g |tail -n 1` + target=`find . -maxdepth 1 -type f -name "${name}-*.${ext}" |sort -g |tail -n 1` [ -n "${target}" ] && ln -sf ${target//.\//} ${name}.${ext} done; done; @@ -39,7 +39,7 @@ db_fix_so () { # do the same for headers now # but since there are only two of them, just overwrite them cd ${ROOT}/usr/include - target=`find . -type d -maxdepth 1 -name 'db[0-9]*' | sort -g |cut -d/ -f2- | tail -n1` + target=`find . -maxdepth 1 -type d -name 'db[0-9]*' | sort -g |cut -d/ -f2- | tail -n1` if [ -n "${target}" ] && [ -e "${target}/db.h" ]; then einfo "Creating db.h symlinks to ${target}" ln -sf ${target}/db.h . |