Shell脚本生成Android共享库Makefile
在集成APK时,由于部分APK携带的SO文件过多,而在Android.mk文件中需要对应的规则也多,但很多是重复的内容,于是作了一个脚本generate_so_copy_script.sh,内容如下:
#!/system/bin/bashfilenames=`ls ./lib/armeabi/`#echo $filenamesOLD_IFS="$IFS"
IFS=" "
arr=($filenames)
IFS="$OLD_IFS"echo "#################################################################"
echo "####### copy the library to /system/lib #########################"
echo "#################################################################"for s in ${arr[@]}
doecho "include