gerrit/Documentation/check_licenses_test.sh
David Ostrovsky 0257d38fa5 Bazel: Fix update instruction for license file
In recent Bazel versions, bazel-genfiles directory is replaced with
bazel-bin directory. Adapt the instruction for updating the license
file correspondingly.

Change-Id: I07bf1d9c13e25b8befe8c16ddd708f6c00b1ed70
2019-10-11 19:29:40 +02:00

16 lines
394 B
Bash
Executable File

#!/bin/sh
hook=$(pwd)/resources/com/google/gerrit/server/tools/root/hooks/commit-msg
for f in js_licenses licenses ; do
if ! diff -u Documentation/${f}.txt Documentation/${f}.gen.txt ; then
echo ""
echo "FAIL: ${f}.txt out of date"
echo "to fix: "
echo ""
echo " cp bazel-bin/Documentation/${f}.gen.txt Documentation/${f}.txt"
echo ""
exit 1
fi
done