diff options
author | 2007-08-06 01:08:09 +0000 | |
---|---|---|
committer | 2007-08-06 01:08:09 +0000 | |
commit | e72b25175152c570abe051b4972240c21e3c9b65 (patch) | |
tree | 322aa1f5a99d5d8a06ec3a41f05ad6e5c603afc6 /sys-devel/gcc-config | |
parent | Version bump, bug#187862 (diff) | |
download | gentoo-2-e72b25175152c570abe051b4972240c21e3c9b65.tar.gz gentoo-2-e72b25175152c570abe051b4972240c21e3c9b65.tar.bz2 gentoo-2-e72b25175152c570abe051b4972240c21e3c9b65.zip |
default to gsed when possible
(Portage version: 2.1.3)
Diffstat (limited to 'sys-devel/gcc-config')
-rwxr-xr-x | sys-devel/gcc-config/files/gcc-config-1.4.0 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys-devel/gcc-config/files/gcc-config-1.4.0 b/sys-devel/gcc-config/files/gcc-config-1.4.0 index d9bec1662fa2..0558d5d64684 100755 --- a/sys-devel/gcc-config/files/gcc-config-1.4.0 +++ b/sys-devel/gcc-config/files/gcc-config-1.4.0 @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.18 2007/07/25 14:33:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.4.0,v 1.19 2007/08/06 01:08:09 vapier Exp $ trap ":" INT QUIT TSTP @@ -13,6 +13,12 @@ source /etc/init.d/functions.sh || { esyslog() { :; } umask 022 +# *BSD are plain stupid ... copy a GNU extension but don't just copy it, +# change it so it works differently. Wish Darwin did selective evolution +# on software developers. +SED=$(type -P gsed) +SED=${SED:-$(type -P sed)} + usage() { cat << "USAGE_END" Usage: gcc-config [options] [CC Profile] @@ -198,7 +204,7 @@ switch_profile() { source "${GCC_ENV_D}/${CC_COMP}" echo ${GCC_PATH:-${PATH:-${ROOTPATH}}} ) - sed -i \ + ${SED} -i \ -e '/^PATH=/d' \ -e '/^ROOTPATH=/d' \ -e '/^GCC_PATH=/d' \ |