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
		
			
				
	
	
		
			16 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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
 |