notecipher / fix-support-library.sh @ master
History | View | Annotate | Download (585 Bytes)
1 | 80efe0bf | Abel Luck | #!/bin/bash |
---|---|---|---|
2 | |||
3 | # we must use the same support lib jar in all the dependencies |
||
4 | good_jar="app/libs/android-support-v4.jar" |
||
5 | |||
6 | # all these libs depend on android-support-v4.jar |
||
7 | #mapfile <<END # requires newer bash than on MacOS X |
||
8 | #external/ActionBarSherlock/actionbarsherlock |
||
9 | #external/CacheWord/cachewordlib |
||
10 | #END |
||
11 | |||
12 | MAPFILE[0]='external/actionbarsherlock/actionbarsherlock' |
||
13 | MAPFILE[1]='external/cacheword/cachewordlib' |
||
14 | |||
15 | |||
16 | for project in "${MAPFILE[@]}"; do |
||
17 | project=${project%$'\n'} # remove trailing newline |
||
18 | echo "updating $good_jar in $project" |
||
19 | cp -f $good_jar $project/libs |
||
20 | done |