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 <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to