diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-21 01:53:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-21 01:53:32 +0000 |
commit | 6eb45d49d5f55608dfbe35b761ac685be3735cfb (patch) | |
tree | 8cffc3ff6ea95398d3cfae8e97fde6fca93738ec /sys-devel | |
parent | alpha/hppa/ia64 love (diff) | |
download | gentoo-2-6eb45d49d5f55608dfbe35b761ac685be3735cfb.tar.gz gentoo-2-6eb45d49d5f55608dfbe35b761ac685be3735cfb.tar.bz2 gentoo-2-6eb45d49d5f55608dfbe35b761ac685be3735cfb.zip |
make sure ROOT always ends in a /
(Portage version: 2.0.53)
Diffstat (limited to 'sys-devel')
-rwxr-xr-x | sys-devel/binutils-config/files/binutils-config-1.8 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-devel/binutils-config/files/binutils-config-1.8 b/sys-devel/binutils-config/files/binutils-config-1.8 index a1d15fa83677..3327f237daf3 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.8 2005/12/13 03:18:11 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.9 2005/12/21 01:53:32 vapier Exp $ # Format of /etc/env.d/binutils/: # config-TARGET: CURRENT=version for TARGET @@ -262,6 +262,7 @@ set_HOST() { } [[ -z ${ROOT} ]] && ROOT="/" +[[ ${ROOT:0-1} != "/" ]] && ROOT="${ROOT}/" ENV_D="${ROOT}etc/env.d/binutils" DEBUG="no" @@ -303,7 +304,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.8 2005/12/13 03:18:11 vapier Exp $" + cvsver="$Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-config/files/binutils-config-1.8,v 1.9 2005/12/21 01:53:32 vapier Exp $" cvsver=${cvsver##*binutils-config-} echo "binutils-config-${cvsver%%,v *}" exit 0 |