Sergii Piatakov | 564ed96 | 2017-11-02 17:55:20 +0200 | [diff] [blame] | 1 | #!/bin/bash |
Dan Albert | 32d5592 | 2016-10-20 10:34:47 -0700 | [diff] [blame] | 2 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 3 | cd $DIR/.. |
Dan Albert | ffa5cbe | 2021-02-03 16:44:37 -0800 | [diff] [blame] | 4 | python3 ./libc/tools/generate_notice.py libc libm > libc/NOTICE |
| 5 | if [ $? -ne 0 ]; then |
| 6 | >&2 echo NOTICE file generation failed |
| 7 | exit 1 |
| 8 | fi |
Dan Albert | 32d5592 | 2016-10-20 10:34:47 -0700 | [diff] [blame] | 9 | |
Dan Albert | c30862f | 2016-10-20 11:45:16 -0700 | [diff] [blame] | 10 | git diff --exit-code HEAD libc/NOTICE |
Dan Albert | 32d5592 | 2016-10-20 10:34:47 -0700 | [diff] [blame] | 11 | exit $? |