On Mon, 2007-12-17 at 18:00 -0500, Frazer Worley wrote:
> perl -ple 's/${(w+)}/$ENV{$1}/g'
Check the GNU make manual. Any dollar sign ($) in a recipe
is
interpreted as a make variable reference and expanded before
the recipe
is passed to the shell.
In order to escape dollar signs, you need to double them
($$). So, use
this instead:
perl -ple 's/$${(w+)}/$$ENV{$$1}/g'
--
------------------------------------------------------------
-------------------
Paul D. Smith <psmith gnu.org> Find
some GNU make tips at:
http://www.gnu.org
http://make.mad-scientis
t.us
"Please remain calm...I may be mad, but I am a
professional." --Mad Scientist
_______________________________________________
Help-make mailing list
Help-make gnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
|