public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] death to underquoted M4 definitions
@ 2005-05-18  7:34 Aaron Walker
  2005-05-18 12:00 ` Diego 'Flameeyes' Pettenò
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Aaron Walker @ 2005-05-18  7:34 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fellow devs,

I'd like to propose a new function for eutils.eclass that fixes m4 files so
that aclocal doesn't produce those annoying underquoted definition warnings
when invoked.

fix_underquoted_m4defs() {
	local m4
	for m4 in $(find ${S} -name '*.m4*' -type f) ; do
		[[ ${m4} == *aclocal.m4 || ${m4} == *acinclude.m4 ]] && \
			continue
		sed -i \
	's|^\(.*AC_DEFUN(\)\([^[:punct:]][[:print:]]\+\),\(.*\)$|\1[\2],\3|g' \
		${m4}
	done
}

ebuilds that install m4's with underquoted defs (there's quite a few) can then
just call this in src_unpack (until fixed upstream of course).

Comments?
- --
"I'm a mean green mother from outer space"
 -- Audrey II, The Little Shop of Horrors

Aaron Walker <ka0ttic@gentoo.org>
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCiu/vC3poscuANHARAhQ+AJ9lDHZDIkWG/5GRZoZgbo1/HrwrawCg3z1E
5jXrjwzz4gdCX30bshuI1mo=
=TrEG
-----END PGP SIGNATURE-----

-- 
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-05-18 18:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18  7:34 [gentoo-dev] death to underquoted M4 definitions Aaron Walker
2005-05-18 12:00 ` Diego 'Flameeyes' Pettenò
2005-05-18 13:42   ` Aaron Walker
2005-05-18 13:48     ` Diego 'Flameeyes' Pettenò
2005-05-18 13:52     ` Stephen Bennett
2005-05-18 12:18 ` Daniel
2005-05-18 12:24 ` Mike Frysinger
2005-05-18 13:39   ` Aaron Walker
2005-05-18 15:11     ` Donnie Berkholz
2005-05-18 16:24       ` Aaron Walker
2005-05-18 16:32       ` Diego 'Flameeyes' Pettenò
2005-05-18 17:16   ` Harald van Dijk
2005-05-18 18:50     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox