1 #!/bin/sh 2 # This is for working around Android.mk's incapability to handle $* in CFLAGS, 3 # even with SECONDEXPNASION. 4 # LOCAL_CFLAGS:=-D_INIT=$*_init 5 f=${1##*/} 6 f=${f%%.*} 7 sed "s/\([ ]*\)\(_init\)\(([ ]*void\)/\1${f}_init\3/" $1 8