Originally posted at https://lazybottom.blogspot.com/2009/08/building-cyanogens-android-source.html on 2009-08-16 # Building Cyanogen's android source After finished playing with the official master branch, I went on to check out Cyanogen's modified tree. After checking it out, I had to modify build/core/tasks/localize.mk to read ```Makefile values_resource_files := $(-- $(foreach elem, $(all_resource_files), $(shell echo $(elem) | \ tr -s / | \ tr " " "\n" | \ grep -E "\/values[^/]*/(strings.xml|arrays.xml)$" | \ grep -v -E -e "-[a-zA-Z]{2}[/\-]"))) ``` because otherwise I would get an error saying too many arguments are passed to /bin/bash