| echo "Usage: $0 <path_to_frameworks_support> <support_version>" |
| echo " <path_to_frameworks_support>: Path to frameworks/support" |
| echo " <support_version>: Support version. This must match the API filenames exactly" |
| echo " Example: import_api.sh ../../../frameworks/support 22.0.0" |
| # Make sure we are in prebuilts/sdk/support-api |
| if [ $(realpath $(dirname $0)) != $(realpath $(pwd)) ]; then |
| echo "The script must be run from $(dirname $0)." |
| # Remove any existing file (if they exist) |
| # Now create the concatentated API file |
| # Find all of the various API files and append them to our |
| for API_FILE in `find $1 -name "current.txt" -print | sort`; do |
| cat $API_FILE >> "$2.txt" |