summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-31 00:06:00 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-31 00:06:00 +0000
commit9f173fdbebed0ebc1e9c2e756b39af499a4077d9 (patch)
tree223295f8a771ffc791a408f76d6bff3eabbe96ee /sys-devel
parentstable on x86 (diff)
downloadgentoo-2-9f173fdbebed0ebc1e9c2e756b39af499a4077d9.tar.gz
gentoo-2-9f173fdbebed0ebc1e9c2e756b39af499a4077d9.tar.bz2
gentoo-2-9f173fdbebed0ebc1e9c2e756b39af499a4077d9.zip
allow users to specify cross- in target (makes tab completion easier)
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-devel')
-rwxr-xr-xsys-devel/crossdev/files/crossdev4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index a3cc9a0057e0..892ed2fa42f9 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.15 2005/03/25 13:33:58 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.16 2005/03/31 00:06:00 vapier Exp $
if [[ ${ROOT:-/} != "/" ]] ; then
echo "Sorry, but crossdev does not support ROOT."
@@ -47,7 +47,7 @@ EOF
parse_target() {
[[ -z $1 ]] && usage 1
- CTARGET=$1
+ CTARGET=${1#cross-}
local CPRE=${CTARGET%%-*} CPOST=${CTARGET#*-}
# Did they give us just an ARCH or the full TARGET ?