Chris Banes | fd4eba9 | 2015-10-15 12:32:39 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # |
| 4 | # Copyright (C) 2015 The Android Open Source Project |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # |
| 18 | |
| 19 | # |
| 20 | # This needs to be ran from the root folder in the Android source tree |
| 21 | # |
| 22 | |
| 23 | function parentdirname() { |
| 24 | FULL_PATH=`readlink -f $1` |
| 25 | echo `dirname $FULL_PATH` |
| 26 | } |
| 27 | |
| 28 | function rundeps() { |
| 29 | LIB_PATH=$1 |
| 30 | LIB_PARENT_PATH=`parentdirname $LIB_PATH` |
| 31 | OUTPUT_FILE=`basename $LIB_PARENT_PATH`-`basename $LIB_PATH`.log |
| 32 | make deps-license PROJ_PATH=$LIB_PATH DEP_PATH=frameworks/support > $OUTPUT_FILE |
| 33 | } |
| 34 | |
| 35 | rundeps frameworks/support/customtabs |
| 36 | rundeps frameworks/support/design |
| 37 | rundeps frameworks/support/percent |
| 38 | rundeps frameworks/support/recommendation |
| 39 | rundeps frameworks/support/v4 |
| 40 | rundeps frameworks/support/v7/appcompat |
| 41 | rundeps frameworks/support/v7/cardview |
| 42 | rundeps frameworks/support/v7/mediarouter |
| 43 | rundeps frameworks/support/v7/palette |
| 44 | rundeps frameworks/support/v7/gridlayout |
| 45 | rundeps frameworks/support/v7/preference |
| 46 | rundeps frameworks/support/v7/recyclerview |
| 47 | rundeps frameworks/support/v13 |
| 48 | rundeps frameworks/support/v14/preference |
| 49 | rundeps frameworks/support/v17/leanback |
| 50 | rundeps frameworks/support/v17/preference-leanback |