One NOTICE file to rule them all.
Generate a single NOTICE file rather than one per library. All the
headers come from libc these days anyway.
Test: tools/update_notice.sh
Bug: None
Change-Id: I127da185fdabc2815042e19aea74c507ec108f46
diff --git a/tools/update_notice.sh b/tools/update_notice.sh
index 97821f0..9974da2 100755
--- a/tools/update_notice.sh
+++ b/tools/update_notice.sh
@@ -1,10 +1,7 @@
#!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
-NOTICES="libc/NOTICE libdl/NOTICE libm/NOTICE linker/NOTICE libstdc++/NOTICE"
-for notice in $NOTICES; do
- ./libc/tools/generate-NOTICE.py $(dirname $notice) > $notice
-done
+./libc/tools/generate-NOTICE.py libc libdl libm linker libstdc++ > libc/NOTICE
-git diff --exit-code HEAD $NOTICES
+git diff --exit-code HEAD libc/NOTICE
exit $?