aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'crossdev')
-rwxr-xr-xcrossdev9
1 files changed, 6 insertions, 3 deletions
diff --git a/crossdev b/crossdev
index dbe6970..2df6657 100755
--- a/crossdev
+++ b/crossdev
@@ -1,12 +1,14 @@
#!/bin/bash
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+CROSSDEV_VER="@CDEVPV@"
+
cd /
umask 0022 #159111
if [[ ${ROOT:-/} != "/" ]] ; then
- echo "Sorry, but crossdev does not support ROOT."
+ echo "Sorry, but crossdev does not support ROOT." 1>&2
exit 2
fi
@@ -371,7 +373,7 @@ SET_X="no"
while [[ $# -gt 0 ]] ; do
case $1 in
- -V|--version) echo "crossdev-@CDEVPV@"; exit 0;;
+ -V|--version) echo "crossdev-${CROSSDEV_VER}"; exit 0;;
-t|--target) shift; parse_target $1;;
--b|--binutils) shift; BVER=$1;;
--g|--gcc) shift; GVER=$1;;
@@ -455,6 +457,7 @@ done
### do the emerge ###
(
hr -
+einfo "crossdev version: ${CROSSDEV_VER}"
einfo "Host Portage ARCH: ${HARCH}"
einfo "Target Portage ARCH: ${TARCH}"
einfo "Target System: ${CTARGET}"