summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-13 03:18:11 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-13 03:18:11 +0000
commit91ad651163edcb84a3f21fd271f508ab37644cea (patch)
tree2052987f38471bb3a246656b75415cc9b1c4ef90 /sys-devel
parentmine (diff)
downloadgentoo-2-91ad651163edcb84a3f21fd271f508ab37644cea.tar.gz
gentoo-2-91ad651163edcb84a3f21fd271f508ab37644cea.tar.bz2
gentoo-2-91ad651163edcb84a3f21fd271f508ab37644cea.zip
be a bit better about cleaning up after ourselves
(Portage version: 2.0.53)
Diffstat (limited to 'sys-devel')
-rwxr-xr-xsys-devel/binutils-config/files/binutils-config-1.88
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.8 b/sys-devel/binutils-config/files/binutils-config-1.8
index f5e396f7ac1d..a1d15fa83677 100755
--- a/sys-devel/binutils-config/files/binutils-config-1.8
+++ b/sys-devel/binutils-config/files/binutils-config-1.8
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.7 2005/11/20 17:48:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.8 2005/12/13 03:18:11 vapier Exp $
# Format of /etc/env.d/binutils/:
# config-TARGET: CURRENT=version for TARGET
@@ -186,7 +186,7 @@ uninstall_target() {
rm -f "${ENV_D}"/config-${TARGET}
# XXX: we still leave behind FAKE_TARGETS in /usr/bin ...
- for x in addr2line ar as c++filt ld nm objcopy \
+ for x in addr2line ar as c++filt gprof ld nm objcopy \
objdump ranlib readelf size strings strip ; do
rm -f "${ROOT}"/usr/bin/${TARGET}-${x}
rm -f "${ROOT}"/usr/${TARGET}/bin/${x}
@@ -197,6 +197,8 @@ uninstall_target() {
for x in bfd iberty opcodes ; do
rm -f "${ROOT}"/usr/${HOST}/${TARGET}/lib/lib${x}{{-*,}.so,.a,.la}
done
+ # Delete broken symlinks
+ find "${ROOT}"/usr/${TARGET}/lib -xtype l -exec rm {} \;
rmdir "${ROOT}"/usr/${HOST}/${TARGET}/lib "${ROOT}"/usr/${HOST}/${TARGET} 2>/dev/null
rm -f "${ROOT}"/usr/${TARGET}/lib/ldscripts
rmdir "${ROOT}"/usr/${TARGET}/{bin,include,lib} "${ROOT}"/usr/${TARGET} 2>/dev/null
@@ -301,7 +303,7 @@ while [[ $# -gt 0 ]] ; do
exit 0
;;
-v|--version)
- cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.7 2005/11/20 17:48:48 vapier Exp $"
+ cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.8 2005/12/13 03:18:11 vapier Exp $"
cvsver=${cvsver##*binutils-config-}
echo "binutils-config-${cvsver%%,v *}"
exit 0