Han-Wen Nienhuys | 0a6495e | 2019-03-28 15:44:43 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | hook=$(pwd)/resources/com/google/gerrit/server/tools/root/hooks/commit-msg |
| 4 | |
| 5 | for f in js_licenses licenses ; do |
| 6 | if ! diff -u Documentation/${f}.txt Documentation/${f}.gen.txt ; then |
| 7 | echo "" |
| 8 | echo "FAIL: ${f}.txt out of date" |
| 9 | echo "to fix: " |
| 10 | echo "" |
David Ostrovsky | 0257d38f | 2019-10-11 19:29:03 +0200 | [diff] [blame] | 11 | echo " cp bazel-bin/Documentation/${f}.gen.txt Documentation/${f}.txt" |
Han-Wen Nienhuys | 0a6495e | 2019-03-28 15:44:43 +0100 | [diff] [blame] | 12 | echo "" |
| 13 | exit 1 |
| 14 | fi |
| 15 | done |