aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-11-22 23:27:01 -0500
committerMike Frysinger <vapier@gentoo.org>2009-11-22 23:27:01 -0500
commita3a56ca0aba759fcaf4af0d127ec4046973dec31 (patch)
tree4bf0dfaadcd774cb23f14c2b354544292ed66950
parentcrossdev: also clean emerge-CHOST shortcuts (diff)
downloadcrossdev-a3a56ca0aba759fcaf4af0d127ec4046973dec31.tar.gz
crossdev-a3a56ca0aba759fcaf4af0d127ec4046973dec31.tar.bz2
crossdev-a3a56ca0aba759fcaf4af0d127ec4046973dec31.zip
cross-emerge: autodetect emerge-CHOST
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xwrappers/cross-emerge1
1 files changed, 1 insertions, 0 deletions
diff --git a/wrappers/cross-emerge b/wrappers/cross-emerge
index 72eca91..d7fc912 100755
--- a/wrappers/cross-emerge
+++ b/wrappers/cross-emerge
@@ -6,6 +6,7 @@
if [ -z "${CHOST}" ] ; then
CHOST=${0##*/}
CHOST=${CHOST%-emerge}
+ CHOST=${CHOST#emerge-}
fi
export CHOST