>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> (a|b) is indeed an E.R.E., according to man grep. However, the
Angus> same man page (Tru64 Unix) says that 'egrep' is obsolescent and
Angus> that 'grep -E' should be used instead. I see here
Angus> http://www.cs.biu.ac.il/cgi-bin/man?grep+1 that Solaris can use
Angus> 'grep -E' too, so I propose that we go with that.

But autoconf.info says:

`egrep'
     POSIX 1003.1-2001 no longer requires `egrep', but many older hosts
     do not yet support the POSIX replacement `grep -E'.  To work
     around this problem, invoke `AC_PROG_EGREP' and then use `$EGREP'.

What about using the dumber regexp
+  grep '\\Declare[a-zA-Z]*Class' "$file" \

It is less accurate, but should be good enough for what we need. If we
want to be robust and catch \DeclareMyWeirdClass, I am sure that it is
possible to add a clause like
  -e 's/\\Declare[a-zA-Z]*Class//'

Angus, would that work?

JMarc

Reply via email to