From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30662 invoked from network); 20 Nov 2004 15:18:35 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 20 Nov 2004 15:18:35 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.41) id 1CVX0V-0006kO-IY for arch-gentoo-dev@lists.gentoo.org; Sat, 20 Nov 2004 15:18:35 +0000 Received: (qmail 21995 invoked by uid 89); 20 Nov 2004 15:18:35 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 27691 invoked from network); 20 Nov 2004 15:18:34 +0000 Date: Sun, 21 Nov 2004 00:18:31 +0900 From: Georgi Georgiev To: gentoo-dev@lists.gentoo.org Message-ID: <20041120151831.GB6378@lion.gg3.net> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <419EE0D6.2090900@gentoo.org> <200411201328.40736.eldad@gentoo.org> <200411201331.45499.eldad@gentoo.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <200411201331.45499.eldad@gentoo.org> User-Agent: Mutt/1.5.6i Subject: Re: [gentoo-dev] CUSTOM cflags replacement snippet X-Archives-Salt: 1108a107-cf8a-4f50-8a62-8bc58fff4861 X-Archives-Hash: 480651133ebd87990da1f1aa1b1a33e6 --45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable maillog: 20/11/2004-13:31:42(+0200): Eldad Zack types > On Saturday 20 November 2004 13:28, Eldad Zack wrote: > > On Saturday 20 November 2004 08:14, Chris White wrote: > > > I created this quick little function to recursively patch Makefil= es > > > with custom CFLAGS. > > > > wouldn't it be simpler to do: >=20 > What I really meant was: >=20 > for makefile in $(find -name "Makefile" .) > do > sed -i \ > -e "s:^CFLAGS.*:CFLAGS =3D ${CFLAGS}:" \ > -e "s:^CXXFLAGS.*:CXXFLAGS =3D ${CXXFLAGS}:" \ > ${makefile} \ > || die "Could not patch ${makefile} for custom CFLAGS" > done Instead of replacing all Makefiles, couldn't one simply make "CFLAGS=3D${CFLAGS}" "CXXFLAGS=3D${CXXFLAGS}" ? --=20 ) Georgi Georgiev ) RAM wasn't built in a day. ) ( chutz@gg3.net ( ( ) +81(90)6266-1163 ) ) --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFBn2BHfXO2NUT1EmYRAqRUAJ0RDOWbGTV+iMrdk2YFrCBGWuqe0ACeI2wE UJZXTtBLcQs4O+TSD8Q3Pro= =ABSP -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq--