autoconf-patches
[Top][All Lists]
Advanced

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

Re: proposed patch for "Tests failed with LINENO." Autoconf bug


From: Raja R Harinath
Subject: Re: proposed patch for "Tests failed with LINENO." Autoconf bug
Date: Sat, 27 Oct 2001 16:59:05 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu)

Hi,

Paul Eggert <address@hidden> writes:
> Could you please look over the autoconf.texi change in particular?
> (If we got rid of the Awk+Sed hack, the LINENO documentation could get
> a lot shorter.  :-)   ^^^^^^^

Sorry, I'm flogging a dead horse.

awk is not mentioned in the set of "allowed to use" utilities in
standards.texi (Utilities in Makefiles).  So, if we want a pure sed
hack, we can use the following to generate a sed script which handles
more than one occurance of $LINENO too.

  sed -n '/$LINENO/=' $as_myself | sed 's/^.*$/& s,$LINENO,&,g/' > lineno.sed
  sed -f lineno.sed $as_myself > $as_me.lineno

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



reply via email to

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