autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: Splitting and testing AC_SHELL_DIRNAME


From: Pavel Roskin
Subject: Re: FYI: Splitting and testing AC_SHELL_DIRNAME
Date: Wed, 25 Oct 2000 12:34:02 -0400 (EDT)

Hello, Akim!

> Pavel> That's because of "AM_"
> 
> Arg.  This needs to be adjusted.

I tried this but I'm affraid writing portable AWK scripts is beyond my
compenence. It's trivial in gawk though:

--- autoconf.sh Mon Oct 16 14:25:56 2000
+++ autoconf.sh Wed Oct 25 12:27:01 2000
@@ -306,7 +306,7 @@
 
   # You can add your own prefixes to pattern if you want to check for
   # them too.
-  pattern="_?A[CHM]_|m4_"
+  pattern="(_|\<)A[CHM]_|m4_"
 
   if test "x$outfile" != x-; then
     chmod +x $outfile

The problem is that we want to match the beginning of the word or the
underscore, but we don't want to match anything else before the macro.

Anyone with better AWK background is welcome to try.

Of course, we can use two patterns if everything else fails.

Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]