platform_bionic/tools/update_notice.sh
Elliott Hughes aa8db1b9d1 Fix/update notices.
Auto-generate NOTICE files for all the directories, and for each one
individually rather than mixing libc and libm together.

Test: N/A
Change-Id: I7e251194a8805c4ca78fcc5675c3321bcd5abf0a
2021-02-16 15:06:50 -08:00

14 lines
699 B
Bash
Executable file

#!/bin/bash
set -x
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
python3 ./libc/tools/generate_notice.py benchmarks > benchmarks/NOTICE
python3 ./libc/tools/generate_notice.py libc > libc/NOTICE
python3 ./libc/tools/generate_notice.py libdl > libdl/NOTICE
python3 ./libc/tools/generate_notice.py libfdtrack > libfdtrack/NOTICE
python3 ./libc/tools/generate_notice.py libm > libm/NOTICE
python3 ./libc/tools/generate_notice.py libstdc++ > libstdc++/NOTICE
python3 ./libc/tools/generate_notice.py linker > linker/NOTICE
python3 ./libc/tools/generate_notice.py tests > tests/NOTICE
python3 ./libc/tools/generate_notice.py tools > tools/NOTICE
git diff --exit-code HEAD libc/NOTICE