Gentoo Archives: gentoo-dev

From: Aaron Walker <ka0ttic@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] death to underquoted M4 definitions
Date: Wed, 18 May 2005 11:45:26
Message-Id: 428AEFEF.7040607@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Fellow devs,
5
6 I'd like to propose a new function for eutils.eclass that fixes m4 files so
7 that aclocal doesn't produce those annoying underquoted definition warnings
8 when invoked.
9
10 fix_underquoted_m4defs() {
11 local m4
12 for m4 in $(find ${S} -name '*.m4*' -type f) ; do
13 [[ ${m4} == *aclocal.m4 || ${m4} == *acinclude.m4 ]] && \
14 continue
15 sed -i \
16 's|^\(.*AC_DEFUN(\)\([^[:punct:]][[:print:]]\+\),\(.*\)$|\1[\2],\3|g' \
17 ${m4}
18 done
19 }
20
21 ebuilds that install m4's with underquoted defs (there's quite a few) can then
22 just call this in src_unpack (until fixed upstream of course).
23
24 Comments?
25 - --
26 "I'm a mean green mother from outer space"
27 -- Audrey II, The Little Shop of Horrors
28
29 Aaron Walker <ka0ttic@g.o>
30 [ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
31 -----BEGIN PGP SIGNATURE-----
32 Version: GnuPG v1.4.1 (GNU/Linux)
33
34 iD8DBQFCiu/vC3poscuANHARAhQ+AJ9lDHZDIkWG/5GRZoZgbo1/HrwrawCg3z1E
35 5jXrjwzz4gdCX30bshuI1mo=
36 =TrEG
37 -----END PGP SIGNATURE-----
38
39 --
40 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] death to underquoted M4 definitions "Diego 'Flameeyes' Pettenò" <flameeyes@g.o>
Re: [gentoo-dev] death to underquoted M4 definitions Daniel <dragonheart@g.o>
Re: [gentoo-dev] death to underquoted M4 definitions Mike Frysinger <vapier@g.o>