From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QuTSD-0002dB-Gw for garchives@archives.gentoo.org; Fri, 19 Aug 2011 18:06:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B276221C075; Fri, 19 Aug 2011 18:05:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 832F721C075 for ; Fri, 19 Aug 2011 18:05:51 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7FB41B402E for ; Fri, 19 Aug 2011 18:05:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id DBB1C80040 for ; Fri, 19 Aug 2011 18:05:49 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <6be75a759d59f8ff8dd1c935bfa74a7f97c91509.vapier@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 6be75a759d59f8ff8dd1c935bfa74a7f97c91509 Date: Fri, 19 Aug 2011 18:05:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 0b25b081634b23992a2b78bba0603de3 commit: 6be75a759d59f8ff8dd1c935bfa74a7f97c91509 Author: Mike Frysinger gentoo org> AuthorDate: Fri Aug 19 17:53:42 2011 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Aug 19 17:53:42 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/crossdev.git;= a=3Dcommit;h=3D6be75a75 crossdev: tweak the initial output to work with openrc behavior The newer einfo helpers automatically detect that we're not writing to a tty and automatically turn off colors, so make the output twice: once to stdout (and with colors) and once to the log. Not a big deal since these are quick `echo` type output only. Signed-off-by: Mike Frysinger gentoo.org> --- crossdev | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crossdev b/crossdev index e4d4dbe..f9d9517 100755 --- a/crossdev +++ b/crossdev @@ -536,7 +536,7 @@ DEFAULT_ABI=3D${ABI} =20 ##################### ### do the emerge ### -( +info() { hr - einfo "crossdev version: ${CROSSDEV_VER}" einfo "Host Portage ARCH: ${HARCH}" @@ -574,9 +574,13 @@ einfo "PORTDIR_OVERLAY: ${PORTDIR_OVERLAY}" einfo "PORT_LOGDIR: ${PORT_LOGDIR}" einfo "PORTAGE_CONFIGROOT: ${PORTAGE_CONFIGROOT}" hr +} +# avoid pipe since `einfo` will not use color :( +info +( +info +emerge -v --info ) >& "${PORT_LOGDIR}"/cross-${CTARGET}-info.log || exit 1 -cat "${PORT_LOGDIR}"/cross-${CTARGET}-info.log -emerge -v --info >> "${PORT_LOGDIR}"/cross-${CTARGET}-info.log =20 #################################### ### Fix up portage files / paths ###