[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] autoupdate and GNU M4 snapshots
From: |
Akim Demaille |
Subject: |
Re: [PATCH] autoupdate and GNU M4 snapshots |
Date: |
13 Mar 2001 11:55:28 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) |
| Here's one alternative.
|
| from Raja R Harinath <address@hidden>
|
| * autoupdate.in (File::Basename): Use package.
| (ac_macros): Save only base filenames.
| (au_macros): Likewise.
Thanks, applied!
| BTW, I think it may be nicer to code the loop as:
|
| my (%macros);
| while (<MACROS>)
| {
| chomp;
| /^(AC|AU):(.*):([^:]*)$/ or next;
| macros{$1}{$3] = basename ($2);
| }
| # ...
| delete macros{AC}{$_} foreach (keys %{ $macros{AU} });
|
| This way, you may be able to distinguish between m4sugar.m4 macros and
| ac*.m4 macros (say, by collecting them in macros{m4}{...}), and not
| rely on the slightly more brittle dependence on the filename.
Hm, I'm not sure I understand well your proposal. But patches will be
gladly accepted :)
BTW, you seem to have some insight in Perl. May I ask you some
explanations on:
http://mail.gnu.org/pipermail/autoconf-patches/2001-February/007000.html
Thanks!