platform_bionic/tools/update_notice.sh
Elliott Hughes 49e0b3d571 Fix copyright headers on new tests.
The upload hook doesn't spot changes in tests/, so fix that too!

Test: repo upload .
Change-Id: If8ae0463e53063b7f584642b5e993658bbc8df32
2024-02-21 19:54:59 +00:00

14 lines
696 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 */NOTICE