Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Allow file globs in microperl module list
@ 2011-02-10 16:41 Martin Hicks
  2011-02-10 22:14 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Hicks @ 2011-02-10 16:41 UTC (permalink / raw)
  To: buildroot

This lets the user place file globs into the microperl module
list.  e.g.,

CGI/*.pm warnings.pm strict.pm

Signed-off-by: Martin Hicks <mort@bork.org>
---
 package/microperl/microperl.mk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/package/microperl/microperl.mk b/package/microperl/microperl.mk
index b68e825..71a4e4a 100644
--- a/package/microperl/microperl.mk
+++ b/package/microperl/microperl.mk
@@ -82,7 +82,8 @@ ifneq ($(MICROPERL_MODS),)
 	 for i in $(patsubst %,$(TARGET_DIR)/$(MICROPERL_MODS_DIR)/%,$(dir $(MICROPERL_MODS))); do \
 		[ -d $$i ] || mkdir -p $$i; \
 	 done; \
-	 for i in $(MICROPERL_MODS); do \
+	 FILES="$(shell cd $(MICROPERL_DIR)/lib && ls $(MICROPERL_MODS))"; \
+	 for i in $$FILES; do \
 	 cp -dpf $(MICROPERL_DIR)/lib/$$i $(TARGET_DIR)/$(MICROPERL_MODS_DIR)/$$i; \
 	 done; \
 	)
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] Allow file globs in microperl module list
  2011-02-10 16:41 [Buildroot] [PATCH] Allow file globs in microperl module list Martin Hicks
@ 2011-02-10 22:14 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-02-10 22:14 UTC (permalink / raw)
  To: buildroot

>>>>> "Martin" == Martin Hicks <mort@bork.org> writes:

 Martin> This lets the user place file globs into the microperl module
 Martin> list.  e.g.,

 Martin> CGI/*.pm warnings.pm strict.pm

 Martin> Signed-off-by: Martin Hicks <mort@bork.org>
 Martin> ---
 Martin>  package/microperl/microperl.mk |    3 ++-
 Martin>  1 files changed, 2 insertions(+), 1 deletions(-)

 Martin> diff --git a/package/microperl/microperl.mk b/package/microperl/microperl.mk
 Martin> index b68e825..71a4e4a 100644
 Martin> --- a/package/microperl/microperl.mk
 Martin> +++ b/package/microperl/microperl.mk
 Martin> @@ -82,7 +82,8 @@ ifneq ($(MICROPERL_MODS),)
 Martin>  	 for i in $(patsubst %,$(TARGET_DIR)/$(MICROPERL_MODS_DIR)/%,$(dir $(MICROPERL_MODS))); do \
 Martin>  		[ -d $$i ] || mkdir -p $$i; \
 Martin>  	 done; \
 Martin> -	 for i in $(MICROPERL_MODS); do \
 Martin> +	 FILES="$(shell cd $(MICROPERL_DIR)/lib && ls $(MICROPERL_MODS))"; \
 Martin> +	 for i in $$FILES; do \
 Martin>  	 cp -dpf $(MICROPERL_DIR)/lib/$$i $(TARGET_DIR)/$(MICROPERL_MODS_DIR)/$$i; \

Why not just do:

for i in $(addprefix $(MICROPERL_DIR)/lib/,$(MICROPERL_MODS)); do ..

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-10 22:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-10 16:41 [Buildroot] [PATCH] Allow file globs in microperl module list Martin Hicks
2011-02-10 22:14 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox