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
23function parentdirname() {
24  FULL_PATH=`readlink -f $1`
25  echo `dirname $FULL_PATH`
26}
27
28function 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
35rundeps frameworks/support/customtabs
36rundeps frameworks/support/design
37rundeps frameworks/support/percent
38rundeps frameworks/support/recommendation
39rundeps frameworks/support/v4
40rundeps frameworks/support/v7/appcompat
41rundeps frameworks/support/v7/cardview
42rundeps frameworks/support/v7/mediarouter
43rundeps frameworks/support/v7/palette
44rundeps frameworks/support/v7/gridlayout
45rundeps frameworks/support/v7/preference
46rundeps frameworks/support/v7/recyclerview
47rundeps frameworks/support/v13
48rundeps frameworks/support/v14/preference
49rundeps frameworks/support/v17/leanback
50rundeps frameworks/support/v17/preference-leanback
51