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 1SZkpB-00080D-NV for garchives@archives.gentoo.org; Wed, 30 May 2012 15:28:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF39DE0793; Wed, 30 May 2012 15:28:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8C7B5E075C for ; Wed, 30 May 2012 15:28:10 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F412A1B4028 for ; Wed, 30 May 2012 15:28:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id B393EE5434 for ; Wed, 30 May 2012 15:28:07 +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: <1338323375.a90771cb146880e903e5f74713cb879acacccc64.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: a90771cb146880e903e5f74713cb879acacccc64 X-VCS-Branch: master Date: Wed, 30 May 2012 15:28:07 +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: 84652730-b6a4-4680-9be0-e98781edf614 X-Archives-Hash: 10bd97536d8080b6e27ca7ed566a96d9 commit: a90771cb146880e903e5f74713cb879acacccc64 Author: Mike Frysinger gentoo org> AuthorDate: Tue May 29 20:27:41 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue May 29 20:29:35 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/crossdev.git;= a=3Dcommit;h=3Da90771cb crossdev: add --init-target flag for just preparing things To help out external tooling, add a --init-target flag that tells crossdev to only setup its /etc/portage (and such) settings without actually running emerge. Signed-off-by: Mike Frysinger gentoo.org> --- crossdev | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crossdev b/crossdev index bd2f505..acd6bf2 100755 --- a/crossdev +++ b/crossdev @@ -78,6 +78,7 @@ Stage Options: =20 External Tooling Options: ${GOOD}--show-target-cfg${NORMAL} Display target settings tha= t crossdev will use + ${GOOD}--init-target${NORMAL} Setup config/overlay/etc...= files only =20 Extra Fun (must be run after above stages): ${GOOD}--ex-only${NORMAL} Skip the stage steps above @@ -478,6 +479,7 @@ FORCE=3D"no" SET_X=3D"no" SHOW_FAIL_LOG=3D"no" SHOW_TARGET_CFG=3D"no" +INIT_TARGET_ONLY=3D"false" =20 while [[ $# -gt 0 ]] ; do case $1 in @@ -512,6 +514,7 @@ while [[ $# -gt 0 ]] ; do -f|--force) FORCE=3D"yes";; -x) SET_X=3D"yes";; --show-target-cfg) SHOW_TARGET_CFG=3D"yes";; + --init-target) INIT_TARGET_ONLY=3D"yes";; --show-fail-log) SHOW_FAIL_LOG=3D"yes";; -P|--portage) UOPTS=3D"${UOPTS} $2"; shift;; -b|-d|-p|-v|-q) UOPTS=3D"${UOPTS} $1";; @@ -943,6 +946,10 @@ doemerge() { =20 [[ ${pn} =3D=3D "[none]" ]] && return 0 =20 + set_use ${pn} ${USE} $( [[ ${MULTILIB_USE} =3D=3D "no" ]] && echo - )mu= ltilib + + [[ ${INIT_TARGET_ONLY} =3D=3D "yes" ]] && return 0 + local logfile=3D${PORT_LOGDIR}/${category} [[ -z $2 ]] \ && logfile=3D${logfile}-${pn}.log \ @@ -951,8 +958,6 @@ doemerge() { einfo "Log: ${logfile}" ebegin "Emerging cross-${2:-${pn}}" =20 - set_use ${pn} ${USE} $( [[ ${MULTILIB_USE} =3D=3D "no" ]] && echo - )mu= ltilib - if has -v ${UOPTS} || has -p ${UOPTS} || has -vp ${UOPTS} || has -pv ${= UOPTS} ; then SHOW_FAIL_LOG=3D"no" emerge ${atom} ${EOPTS} 2>&1 | tee "${logfile}"