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 1RKiyz-0005o7-UO for garchives@archives.gentoo.org; Mon, 31 Oct 2011 03:56:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF3A021C043 for ; Mon, 31 Oct 2011 03:56:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j936Yf9G014177 for ; Mon, 3 Oct 2005 06:34:41 GMT Received: from cpe-65-26-255-237.wi.res.rr.com ([65.26.255.237] helo=nightcrawler) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1EMK27-00043X-3e for gentoo-dev@lists.gentoo.org; Mon, 03 Oct 2005 06:42:43 +0000 Date: Mon, 3 Oct 2005 01:42:52 -0500 From: Brian Harring To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] lights on internals Message-ID: <20051003064252.GE27872@nightcrawler> References: <43404C01.4070309@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="brEuL7wsLY8+TuWz" Content-Disposition: inline In-Reply-To: <43404C01.4070309@gentoo.org> User-Agent: Mutt/1.5.8i X-Archives-Salt: 7a21d0f9-71d8-4b10-a976-42511aa7e397 X-Archives-Hash: 39fd8bcbf698fc6a587014e5cfb27231 --brEuL7wsLY8+TuWz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 02, 2005 at 11:07:13PM +0200, Francesco R wrote: > The ready to cut ebuild at the bottom print it's environment (variable > and functions) to a bunch of files into /var/tmp/fakebuild/. > May be useful for who want to have a look at "what" and "when" is > avaible during the various emerge phases (but not limited to). > print_env() { > local fakebuild_output_dir=3D"/var/tmp/fakebuild" > mkdir -p "${fakebuild_output_dir}" || die >=20 > [[ -z "${fakebuild_progr}" ]] && fakebuild_progr=3D100 > fakebuild_progr=3D$(( $fakebuild_progr +1 )) > export fakebuild_progr >=20 > local fakebuild_ext=3D"${1}.${fakebuild_progr}" >=20 > # not sorting, break multiline vars > einfo "${fakebuild_output_dir}/env_${fakebuild_ext}" > env \ > &> "${fakebuild_output_dir}/env_${fakebuild_ext}" >=20 > # Remove egrep and sort to see the source of every fx > einfo "${fakebuild_output_dir}/fxlist_${fakebuild_ext}" > typeset \ > | egrep '^\b.* \(\)' \ > | sort \ > &> "${fakebuild_output_dir}/fxlist_${fakebuild_ext}" > } This won't work as you expect. Env is a binary, it only gets=20 the exported env. Elaborate on the "what and when" bit also, since the env that's dumped=20 to ebuild.sh varies depending on a lot of things. ~harring =09 --brEuL7wsLY8+TuWz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDQNLsvdBxRoA3VU0RAh6kAJ9YqY9uxMtnNgMKk3NgcIgJu5U4XACdHqEb E9QEQUg/qo16SYXzS5Vt5vQ= =CsfS -----END PGP SIGNATURE----- --brEuL7wsLY8+TuWz-- -- gentoo-dev@gentoo.org mailing list