diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-10-16 10:26:27 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-10-16 10:26:27 +0000 |
commit | c54f0cafbe6e1d159002d908e7ead5349fabfa4f (patch) | |
tree | fcc1b6fc3036d616244ee01573cb6a625babb0a7 /sys-devel | |
parent | add support for more CTARGET->libc bindings (diff) | |
download | gentoo-2-c54f0cafbe6e1d159002d908e7ead5349fabfa4f.tar.gz gentoo-2-c54f0cafbe6e1d159002d908e7ead5349fabfa4f.tar.bz2 gentoo-2-c54f0cafbe6e1d159002d908e7ead5349fabfa4f.zip |
tweak cleaning a bit more and add support for dietlibc/freebsd CTARGETs
(Portage version: 2.0.53_rc5)
Diffstat (limited to 'sys-devel')
-rwxr-xr-x | sys-devel/crossdev/files/crossdev | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev index f6a3fc278118..a7426be7c06d 100755 --- a/sys-devel/crossdev/files/crossdev +++ b/sys-devel/crossdev/files/crossdev @@ -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/crossdev/files/crossdev,v 1.37 2005/10/11 03:25:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.38 2005/10/16 10:26:27 vapier Exp $ cd / @@ -11,6 +11,7 @@ if [[ ${ROOT:-/} != "/" ]] ; then fi source /sbin/functions.sh || exit 1 +esyslog() { :; } die() { echo eerror $* @@ -190,6 +191,7 @@ uninstall() { exit 1 fi + export CLEAN_DELAY=0 cd /var/db/pkg for p in cross-${CTARGET}/* ; do emerge -C =${p} || exit 1 @@ -199,6 +201,7 @@ uninstall() { done rm -f /usr/${CTARGET}/{sys-include,usr} rm -f /usr/bin/${CTARGET}-{gcc,{c,g}++} + rmdir /usr/${CTARGET}/{include/asm,include} &> /dev/null for d in /usr/${CTARGET} /usr/lib/gcc{,-lib}/${CTARGET} ; do if [[ ! -d ${d} ]] ; then rm -f "${d}" &> /dev/null @@ -282,8 +285,10 @@ done [[ -z ${CTARGET} ]] && usage 1 [[ ${STAGE} == "COW" ]] && STAGE=${STAGE_C_CPP} case ${CTARGET} in - *-uclibc) LPKG="uclibc";; - *-klibc) LPKG="klibc";; + *-dietlibc) LPKG="dietlibc";; + *-freebsd*) LPKG="freebsd-lib" KPKG="freebsd-headers";; + *-klibc) LPKG="klibc";; + *-uclibc) LPKG="uclibc";; esac ##################### |