• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5f=${1##*/}
6f=${f%%.*}
7sed "s/\([ ]*\)\(_init\)\(([ ]*void\)/\1${f}_init\3/" $1
8