[csw-devel] [PATCH] mGAR v2: A bugfix for EXPANDVARS

Dagobert Michelsen dam at opencsw.org
Mon Jan 10 14:25:12 CET 2011


Hi Maciej,

Am 09.01.2011 um 07:57 schrieb maciej at opencsw.org:
> From: Maciej Blizinski <maciej at opencsw.org>
> 
> The 'g' parameter was missing, and only one instance of a variable was
> expanded per line.  This patch adds 'g' to the perl invocation which expands
> variables.

Right. Thanks!

  -- Dago


> ---
> gar/v2/gar.mk |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/gar/v2/gar.mk b/gar/v2/gar.mk
> index 4a3eee4..02b14f1 100644
> --- a/gar/v2/gar.mk
> +++ b/gar/v2/gar.mk
> @@ -444,7 +444,7 @@ extract-p:
> _var_definitions = $(foreach VAR,$(shell perl -ne 'print "$$1 " if( /@([^@]+)@/ )' <$1),$(VAR)=$($(VAR)))
> 
> expandvars-%:
> -	$(call _var_definitions,$(WORKDIR)/$*) perl -i-unexpanded -npe 's/@([^@]+)@/$$ENV{$$1}/e' $(WORKDIR)/$*
> +	$(call _var_definitions,$(WORKDIR)/$*) perl -i-unexpanded -npe 's/@([^@]+)@/$$ENV{$$1}/eg' $(WORKDIR)/$*
> 	@$(MAKECOOKIE)
> 
> 
> -- 
> 1.7.1
> 



More information about the devel mailing list