public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Aaron Walker <ka0ttic@gentoo.org>
To: gentoo-dev <gentoo-dev@lists.gentoo.org>
Subject: [gentoo-dev] death to underquoted M4 definitions
Date: Wed, 18 May 2005 03:34:07 -0400	[thread overview]
Message-ID: <428AEFEF.7040607@gentoo.org> (raw)

-----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


             reply	other threads:[~2005-05-18 11:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-18  7:34 Aaron Walker [this message]
2005-05-18 12:00 ` [gentoo-dev] death to underquoted M4 definitions 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=428AEFEF.7040607@gentoo.org \
    --to=ka0ttic@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox