Hello All,
Please find the patch for the argument list too long error attached.
Original code had two loops, one to get all resource files (using a for
each loop) and the second loop to select only required variables from
it. However, all resource files is a huge list and created the error.
The patch merges both the operations into a single loop and this would
not lead to the error since we would never pass a huge file list to shell.
Regards,
Vaidhy
diff --git a/core/tasks/localize.mk b/core/tasks/localize.mk
index 12e7b5c..ee52eb1 100644
--- a/core/tasks/localize.mk
+++ b/core/tasks/localize.mk
@@ -20,14 +20,13 @@
# all resources in directories called values or values-something, where
# one of the - separated segments is not two characters long -- those are the
# language directories, and we don't want those.
-all_resource_files := $(foreach pkg, \
+values_resource_files := $(foreach pkg, \
$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES), \
- $(PACKAGES.$(pkg).RESOURCE_FILES))
-values_resource_files := $(shell echo $(all_resource_files) | \
+ $(shell echo $(PACKAGES.$(pkg).RESOURCE_FILES) | \
tr -s / | \
tr " " "\n" | \
grep -E "\/values[^/]*/(strings.xml|arrays.xml)$$" | \
- grep -v -E -e "-[a-zA-Z]{2}[/\-]")
+ grep -v -E -e "-[a-zA-Z]{2}[/\-]"))
xlb_target := $(PRODUCT_OUT)/strings.xlb
begin:vcard
fn:Vaidhyanathan Mayilrangam Gopalan
n:Mayilrangam Gopalan;Vaidhyanathan
org:Svapas Innovations
email;internet:[email protected]
title:CTO
tel;work:+91 44 22238717
tel;cell:+91 9790911996
note:Skype: vaidhy
x-mozilla-html:FALSE
version:2.1
end:vcard
_______________________________________________
android-freerunner mailing list
[email protected]
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org