On 5 May 2001, Tom Tromey wrote:
> I think this is ok.
> Please check it in.
Ok.
> Pavel> + elsif (/^\@def(code)?index (\w+)/)
> Pavel> + push @clean_suffixes, $2;
>
> My understanding is that here $1 will not necessarily be defined, but
> $2 will always be defined. Is that right?
Yes. I was 99.9% sure, but since you asked I wrote this script and it
makes me 100% sure.
#! /usr/bin/perl -w
$_ = "\@defcodeindex fu";
/^\@def(code)?index (\w+)/;
print "\$1 = $1, \$2 = $2\n";
$_ = "\@defindex fu";
/^\@def(code)?index (\w+)/;
print "\$1 = $1, \$2 = $2\n";
Output:
$1 = code, $2 = fu
Use of uninitialized value in concatenation (.) at ./test line 7.
$1 = , $2 = fu
> Pavel> By the way, I discovered a terrible bug in CVS Automake while
> Pavel> testing it - "make dvi" doesn't propagate to the
> Pavel> subdirectories.
>
> That's a bit suprising. I looked at the automake Makefile.in and it
> seems to do the right thing. `make -n dvi' seemed to work ok too.
Tom, I'm worried about you. Don't you know that Automake has its
documentation in the top-level directory?
Try recent Autoconf or Libtool:
$ automake
$ ./configure --quiet
...
$ make dvi
make: Nothing to be done for `dvi'.
--
Regards,
Pavel Roskin