Lines Matching +full:ninja +full:- +full:build

1 #!/bin/bash -eu
9 # http://www.apache.org/licenses/LICENSE-2.0
17 set -e
20 # changes to the generated ninja files. This is to reduce the effort required to be confident
32 Usage: diff_build_graphs.sh [--products=product1,product2...] <OLD_VERSIONS> <NEW_VERSIONS>
34 This file builds and parses the build files (Android.mk, Android.bp, etc) for each requested
35 product and for both sets of versions, and checks whether the ninja files (which implement
36 the build graph) changed between the two versions.
38 …Example: diff_build_graphs.sh 'build/soong:work^ build/blueprint:work^' 'build/soong:work build/bl…
41 --products=PRODUCTS comma-separated list of products to check"
50 arg="${1-}"
52 --products=*) PRODUCTS_ARG="$arg";;
74 OUT_DIR="${OUT_DIR-}"
75 if [ -z "$OUT_DIR" ]; then
90 git -C "$project" checkout "$ref"
96 echo "Starting build"
100 # find multiproduct_kati and have it build the ninja files for each product
102 BUILD_NUMBER=sample "$builder" $PRODUCTS_ARG --keep --out "$OUT_DIR_TEMP" || true
115 unzip -qq "$zip1" -d "$unzipped1"
116 unzip -qq "$zip2" -d "$unzipped2"
118 #do a diff of the ninja files
120 …diff -r "$unzipped1" "$unzipped2" -x build_date.txt -x build_number.txt -x '\.*' -x '*.log' -x bui…
121 if [[ -s "$diffFile" ]]; then
123 echo "First few differences (total diff linecount=$(wc -l $diffFile)) for product $product:"
124 cat "$diffFile" | head -n 10
126 rm -rf "$unzipped1" "$unzipped2"
129 rm -rf "$zip1" "$unzipped1" "$zip2" "$unzipped2"
135 rm -rf "$WORK_DIR"
138 #build new code
143 #build old code
160 …find $OUT_DIR_OLD $OUT_DIR_NEW -mindepth 1 -maxdepth 1 -name "*.zip" | sed "s|^$OUT_DIR_OLD/||" | …