From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6105 invoked from network); 20 Nov 2004 11:37:07 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 20 Nov 2004 11:37:07 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.41) id 1CVTYB-0001nc-KP for arch-gentoo-dev@lists.gentoo.org; Sat, 20 Nov 2004 11:37:07 +0000 Received: (qmail 29121 invoked by uid 89); 20 Nov 2004 11:37:07 +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 7623 invoked from network); 20 Nov 2004 11:37:07 +0000 From: Eldad Zack To: gentoo-dev@lists.gentoo.org Date: Sat, 20 Nov 2004 13:31:42 +0200 User-Agent: KMail/1.7.1 References: <419EE0D6.2090900@gentoo.org> <200411201328.40736.eldad@gentoo.org> In-Reply-To: <200411201328.40736.eldad@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1612103.knLmjyzI5c"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200411201331.45499.eldad@gentoo.org> Subject: Re: [gentoo-dev] CUSTOM cflags replacement snippet X-Archives-Salt: ceb25f58-f540-47dd-9b7b-7184eb548277 X-Archives-Hash: e6925bd8dd2780efea1fdee935b2ddf3 --nextPart1612103.knLmjyzI5c Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 Makefiles > > with custom CFLAGS. > > wouldn't it be simpler to do: What I really meant was: 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 =2D-=20 Eldad Zack Key/Fingerprint at pgp.mit.edu, ID 0x96EA0A93 --nextPart1612103.knLmjyzI5c Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBnyshT+MN7JbqCpMRAnCvAKCFDqKL4o9FzgzX6UdtcWPYTMHo3wCgjrtg 2XEvpU0FVtalzLKtsz/MQpw= =BiYF -----END PGP SIGNATURE----- --nextPart1612103.knLmjyzI5c--