summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-02 22:55:01 +0000
committerMike Frysinger <vapier@gentoo.org>2006-04-02 22:55:01 +0000
commitbde95266b2c8462ecea1f5da643a353ce6eb534b (patch)
tree9550c3ddcd8410148f2359dd593231e80d8e25df /eclass/toolchain-binutils.eclass
parentAdded ~alpha keyword. (diff)
downloadgentoo-2-bde95266b2c8462ecea1f5da643a353ce6eb534b.tar.gz
gentoo-2-bde95266b2c8462ecea1f5da643a353ce6eb534b.tar.bz2
gentoo-2-bde95266b2c8462ecea1f5da643a353ce6eb534b.zip
trim empty dirs
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r--eclass/toolchain-binutils.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass
index 7ccc1d497cf0..ae6d04a25999 100644
--- a/eclass/toolchain-binutils.eclass
+++ b/eclass/toolchain-binutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.57 2006/03/18 22:30:10 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.58 2006/04/02 22:55:01 vapier Exp $
# We install binutils into CTARGET-VERSION specific directories. This lets
# us easily merge multiple versions for multiple targets (if we wish) and
@@ -316,6 +316,8 @@ toolchain-binutils_src_install() {
has noman ${FEATURES} && rm -r "${D}"/${DATAPATH}/man
# Remove shared info pages
rm -f "${D}"/${DATAPATH}/info/{dir,configure.info,standards.info}
+ # Trim all empty dirs
+ find "${D}" -type d | xargs rmdir >& /dev/null
}
toolchain-binutils_pkg_postinst() {