blob: 0d659c3fb22701143997aa9a4b03956f36e964d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
# Change into the libandroid_support directory.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
# Pull the notices from the files in libandroid_support itself (via `.`),
# plus all the bionic files we pull in.
sed '/$(BIONIC_PATH).*\.c/ { s| *$(BIONIC_PATH)|../../../../bionic/| ; s| *\\$|| ; p } ; d' Android.mk | \
xargs ../../../../bionic/libc/tools/generate-NOTICE.py . > NOTICE
# Show the caller what we've done.
git diff --exit-code HEAD ./NOTICE
exit $?
|