This generates a version file that looks correct, but doesn't rebuild
correctly.  Correct rebuilds will be provided by a version of
bazel containing
  a2897bff4c
Change-Id: I5101d7f2643d464cf32c8281a28ec6c3fc4fa2cf
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
# This script will be run by bazel when the build process starts to
 | 
						|
# generate key-value information that represents the status of the
 | 
						|
# workspace. The output should be like
 | 
						|
#
 | 
						|
# KEY1 VALUE1
 | 
						|
# KEY2 VALUE2
 | 
						|
#
 | 
						|
# If the script exits with non-zero code, it's considered as a failure
 | 
						|
# and the output will be discarded.
 | 
						|
 | 
						|
git_rev=$(git describe --always --match "v[0-9].*" --dirty)
 | 
						|
 | 
						|
echo "STABLE_BUILD_GERRIT_LABEL ${git_rev}"
 |