blob: adfc2da43086a8888b8d0ff43402db2e470c1a1c [file] [log] [blame]
#!/bin/sh
hook=$(pwd)/resources/com/google/gerrit/server/tools/root/hooks/commit-msg
for f in backend_licenses 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