Update our notice files as a pre-upload step.

Also updates the license files, since apparently they're out of date.

Test: repo upload --cbr .
Bug: None
Change-Id: Ic8d855a7ee5185c4933da699292868e02ef79531
diff --git a/tools/update_notice.sh b/tools/update_notice.sh
new file mode 100755
index 0000000..97821f0
--- /dev/null
+++ b/tools/update_notice.sh
@@ -0,0 +1,10 @@
+#!/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
+
+git diff --exit-code HEAD $NOTICES
+exit $?