vitess.io/vitess@v0.16.2/tools/check_make_sizegen.sh (about) 1 #!/bin/bash 2 3 # 4 # Validate that the current version of the generated cache_size files match the output 5 # generated by sizegen. 6 # 7 8 source build.env 9 10 first_output=$(git status --porcelain) 11 12 make sizegen 13 14 second_output=$(git status --porcelain) 15 16 diff=$(diff <( echo "$first_output") <( echo "$second_output")) 17 18 if [[ "$diff" != "" ]]; then 19 echo "ERROR: Regenerated cached_size files do not match the current version." 20 echo -e "List of files containing differences:\n$diff" 21 exit 1 22 fi